urir10
asked on
ASP.Net How to check filesize before upload?
Hi All
I have a form that has multiple file upload fields, i have javascript to check the file type and only allow what i want, but how will i  check the file size and make sure its under a specific limit before i do upload?
if there is a way to do it with Javascript that would be great as i want to avoid any postback as that will empty all the FileUpload controls values.
I have a form that has multiple file upload fields, i have javascript to check the file type and only allow what i want, but how will i  check the file size and make sure its under a specific limit before i do upload?
if there is a way to do it with Javascript that would be great as i want to avoid any postback as that will empty all the FileUpload controls values.
ASKER
Thanks for your reply but i cant use active x as my corporation doesnt allow some of its users to install it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, i will try this and see where it gets me.
https://www.experts-exchange.com/questions/20805196/check-the-size-with-javascript-before-upload.html
just go through the accepted solution