Link to home
Start Free TrialLog in
Avatar of urir10
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.

Avatar of masterpass
masterpass
Flag of India image

Have a look at already solved issue

https://www.experts-exchange.com/questions/20805196/check-the-size-with-javascript-before-upload.html

just go through the accepted solution
Avatar of urir10
urir10

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
Avatar of masterpass
masterpass
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of urir10

ASKER

Thanks, i will try this and see where it gets me.