asp.net mvc 2 - is it possible to check the filesize of a file before uploading it? -



asp.net mvc 2 - is it possible to check the filesize of a file before uploading it? -

i trying upload file webserver in asp.net mvc 2 webapplication. works when file size less 102mb.

this setting in web.config:

<configuration> <system.web> <httpruntime maxrequestlength="102400" /> </system.web>

can check before upload file filesize wont throw error when reaches on limit?

you may checkout following blog post. can check file size on client using of file upload plugins out there (uploadify, plupload, ...).

asp.net-mvc-2 c#-4.0

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -