I'm using SA-File to upload file to a server. Before the files are uploaded I need to check the files size. How could that be done? As far as I understand it's only possible to check the size with SA-File after the upload is completed.
Printable View
I'm using SA-File to upload file to a server. Before the files are uploaded I need to check the files size. How could that be done? As far as I understand it's only possible to check the size with SA-File after the upload is completed.
Yes, SA-Fileup can only check the size of the file after it is uploaded because sa fileup runs on the server.
You can set the sa-fileup object's maxbytes property.
The problem with this is that the object will upload part of the file, until the file bytes uploaded = maxbytes. If you set maxbytes to 1000 and try to upload a 2500 size file, you will still end up loading 1000 bytes of that file.