Limit MultiFile (with flash) total upload size?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Limit MultiFile (with flash) total upload size?

Mike Lim

Hi again

Using http://www.brettle.com/Demo.aspx,

Scenario 1 : Upload a 2GB+ file using InputFile control

Result : the attempt was rejected.
Progress bar message was

Rejected: Total size > 2147482624 bytes
Scenario 2 : Upload a 2GB+ of files using MultiFile

Result : upload was able to start. Progress bar message was something like :

0.18/2676.90MB (0%) at 28.5 KB/s - 24.8h left 

I cancelled the upload.

Not sure if Scenario 2 is a bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Limit MultiFile (with flash) total upload size?

Dean Brettle
Administrator
Not a bug.  The the maxRequestLength is the max size per request.  When using Flash each file is uploaded in a separate request.  When not using Flash they are all uploaded in one request.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Limit MultiFile (with flash) total upload size?

Mike Lim

Thanks for the clarification

Was hoping to use maxReqestLength to limit total upload size. Perhaps I can override OnFileQueued(), add up file.size to compute total size. And override Delete() to deduct total size when user click to 'X' to remove a file?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Limit MultiFile (with flash) total upload size?

Dean Brettle
Administrator
Exactly.  Note that file.size will be -1 if the the user doesn't have Flash because the browser itself doesn't provide any access to file size.
Loading...