Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyway to determine file size before upload?

So we're having this problem. A user goes to upload a file, and if it's above 10MB, it just kind of times out the page, and clears, and no good error is thrown to describe what happened. Ideally, we would like to examine the file size when the user chooses the file they want to upload but I don't know if this is even possible. Our framework is built with ASP.NET, VB.NET, and Javascript (and ExtJS 3.0), and it runs in IE.

Anyway to do this?

like image 814
Scott Avatar asked Dec 28 '22 11:12

Scott


1 Answers

I don't think there's any way to do this using standard HTML forms.

Take a look at SWFUpload. This will let you control the file size.

like image 91
David Neale Avatar answered Dec 31 '22 01:12

David Neale