[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 677
  • Last Modified:

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.

0
urir10
Asked:
urir10
  • 2
  • 2
1 Solution
 
masterpassCommented:
Have a look at already solved issue

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_20805196.html

just go through the accepted solution
0
 
urir10Author Commented:
Thanks for your reply but i cant use active x as my corporation doesnt allow some of its users to install it.
0
 
masterpassCommented:
then you can go for jQuery or Flash File uploader .. I prefer Jquery uploader

http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/
0
 
urir10Author Commented:
Thanks, i will try this and see where it gets me.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now