Saisvirtusa Member since 2014 3 posts
Posted: August 24, 2017
Last activity: August 25, 2017

How get the size of the file we are uploading

Hi All,

I need to get the size of the file while uploading for my requirement.

In my requirement, need to restrict size of some files to 20 MB and for some files to 100 MB based on the file category we are selecting.

Lets say, we have two file categories (pyCategory) ---> CategoryA (file size limit 20MB) and CategoryB(File size limit 100MB).

If user uploaded a file with 30 MB and selects categoryA in the attachment screen we should throw error by comparing the file size and size limit.

For the second category we are restricting through the DSS pyMaxDragDropAttachSizeMB

Please try to give the solution for this.

Thank You.

Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn