Page 1 of 1

MaxSize

Posted: Fri Jan 15, 2010 10:01 pm
by sharly09
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.

Re: MaxSize

Posted: Sat Jan 16, 2010 8:19 am
by support
maxsize 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: MaxSize

Posted: Sat Mar 06, 2010 3:27 am
by Bogdan
I 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: MaxSize

Posted: Sun Mar 07, 2010 7:12 pm
by support
Thanks but we've implemented it in 2.6. It will be released soon.