Automate

 View Only
  • 1.  Composer - restrict users from attaching files greater than 5 MB

    Posted 01-21-2019 10:29
      |   view attached
    Dear Winshuttlers,

    Some of our internal users ignore the message on the form and still attach documents that are greater than 5 MB. Is there a way to put restriction upfront before they even click "Save and Route"? Any help would be appreciated. 

    Regards,
    Younus

    ------------------------------
    Younus Ahmed | Data Quality Analyst
    Smith & Nephew | Memphis, TN
    ------------------------------


  • 2.  RE: Composer - restrict users from attaching files greater than 5 MB

    Posted 01-22-2019 09:12
    Hi Younus,

    Support may have a better answer, but the only place I've know that you can manage file size uploads is in SharePoint Central Administration -> Manage Web Applications -> General Settings and then the maximum file upload size property. However, this affects all sites in that web application and all lists and libraries, meaning you wouldn't be able to upload Composer solutions greater than 5 MB, training PDFs, etc...

    It may be possible to use JavaScript to hook into the file binding once selected and check the size. That custom function could be placed on the submit button to prevent a save and route when exceeded.

    ------------------------------
    Joshua Whitener | Winshuttle Evangelist
    Exxon Mobil Corporation | 8326258441
    ------------------------------



  • 3.  RE: Composer - restrict users from attaching files greater than 5 MB

    Posted 01-23-2019 14:11
    Thanks, Joshua. 

    Support said they will forward it to engineering. I'll try something in JavaScript. 

    Have a great day!

    ------------------------------
    Younus Ahmed | Data Quality Analyst
    Smith & Nephew, Business Services
    ------------------------------



  • 4.  RE: Composer - restrict users from attaching files greater than 5 MB

    Posted 01-24-2019 04:32
      |   view attached
    Hi Younus,

    you might try to use JavaScript custom function on 'Save and Route' to evaluate the file size. Make sure the end user browser ActiveX control's are enabled, otherwise this check will not work.

    attached the sample code of attachment check function.

    Hopefully this work on your scenario as well.

    ------------------------------
    Kanakarajulu Thota | WinShuttle Developer
    Microsoft Mobile Oy (Nokia) | [Bangalore] | 9900519199
    ------------------------------

    Attachment(s)



  • 5.  RE: Composer - restrict users from attaching files greater than 5 MB

    Posted 01-24-2019 17:40
    Thank you, Kanakarajulu. I think this will be a good start. 

    ------------------------------
    Younus Ahmed | Data Quality Analyst
    Smith & Nephew, Business Services
    ------------------------------