MaxSize

Enhanced frontend add-on to queue files.
Post Reply
sharly09
Posts: 1
Joined: Fri Jan 15, 2010 9:54 pm

MaxSize

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: MaxSize

Post 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

Bogdan
Posts: 12
Joined: Wed Oct 14, 2009 10:56 pm

Re: MaxSize

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: MaxSize

Post by support »

Thanks but we've implemented it in 2.6. It will be released soon.

Post Reply