Hi all.
I am using fileupload 2.5 and jbatch 2.5.
I would like to limit the total size of one single upload to a specific value. I have set maxfile to 5 and maxsize to 5*1024*1024 and I would like the following behavior:
upload 5 files of 1 MB each OR upload 2 files of 2 MB OR upload 1 file of 5 MB
But with the above settings, I can drag and drop 4 files of 2 MB! Am I missing something?
thanks a lot for your help.
Regards.
MaxSizeRe: MaxSizemaxsize is for each file not for the all files. We could add the feature you request in JBatchUpload if you're willing to pay a small fee for it. Contact support(at)jfileupload(dot)com
Re: MaxSizeI have implemented 'maxtotalsize'.
It checks before even adding any files to the list, OnDrop. So if you have maxtotalsize=5000000 and you already have 3x1000000 files in the list, and then drop another 3x1000000 files, those would not be added and you get a message. Let me know if interested in the source code! P.S. And I'm totally talking to the Support team as well. I think my code is elegant and complies with coding jFileUpload style. Re: MaxSizeThanks but we've implemented it in 2.6. It will be released soon.
|