Support Article

Attachment File Size and Type validation incorrect in mobile

SA-31180

Summary



The attachment file size and type validation is not configured correctly for mmobil..

The attachment size validation has been implemented by out of the box System Setting “pyMaxDragDropAttachSizeMB”, which is used for restriction of Maximum size, in MB, of a file attached via the Multi Drag/Drop Attachments control or through select files.  Validation of attached file is working fine on desktop but its not working in mobile.

The file type validation is implemented by a trigger in class “Data-WorkAttach-File” on Saved and its working fine on desktop. On mobile the validation is happening and the file is not attached but incorrectly seeing the “File attached sussessfully” message.

 

Error Messages



Not Applicable


Steps to Reproduce

  1. Open a work object
  2. Attach a file of either the wrong (not listed as allowed) type or file larger than allowed.


Root Cause



In Mobile, the attachment size validation does not use pyMaxDragDropAttachSizeMB System setting.

The attachment validation issue in mobile is due to a bug where the check for Page errors was missing and thus sending out the 'Success' message.

Resolution



For mobile browser the DSS should be used for max file size is "uiengine/mobile/maxattachmentsize"
for the file type issue Apply HFIX-30713 

Published December 7, 2016 - Updated December 8, 2016


0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.