Hi there!
I'm hoping that someone knows how to check the size of a file before it is uploaded to the server using JavaScript.
I have seen suggested solutions using an ActiveX control to check the file size; however, I'm not happy with this solution because my application is designed to work in multiple browsers and ActiveX is limited to Internet Explorer.
I cannot check the file size on the web server because IIS throws the following exception before my code is executed:
"System.Web.Htt pException: Maximum request length exceeded"
I realize that the maximum request length can be increased, however according to my application's specifications the files uploaded (images) must be much less than 4MB in size (200K).
Any suggestions or recommendations about how to check the file size using JavaScript are welcome.
Thanks,
-Frinny
I'm hoping that someone knows how to check the size of a file before it is uploaded to the server using JavaScript.
I have seen suggested solutions using an ActiveX control to check the file size; however, I'm not happy with this solution because my application is designed to work in multiple browsers and ActiveX is limited to Internet Explorer.
I cannot check the file size on the web server because IIS throws the following exception before my code is executed:
"System.Web.Htt pException: Maximum request length exceeded"
I realize that the maximum request length can be increased, however according to my application's specifications the files uploaded (images) must be much less than 4MB in size (200K).
Any suggestions or recommendations about how to check the file size using JavaScript are welcome.
Thanks,
-Frinny
Comment