Last activity: 25 Aug 2017 1:52 EDT
How get the size of the file we are uploading
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.