Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Created Issue: AjaxFileUpload issues running on IIS 7.5 when using HTML 5 based browsers [27327]

$
0
0
Details:
AjaxFileUploadControl

AjaxControlToolkit.dll version 4.1.60919 (September .Net 4 download)

Hosted on IIS 7.5 web server - has all current Microsoft patches (including the 2 HTML5 reliabilty updates)

Using <httpRuntime maxRequestLength="10240" /> in the web.config to limit upload size (in my case to 10MB).

Problem:
I am using the AJAXFileUpload control and everything is working as expected except for the way that HTML 5 API browsers (IE10, FireFox, Chrome, Opera, Safari) handle errors when the maximum file size specified in web.config is reached.

I want to limit the file upload size to 10MB and have updated the web.config accordingly. If I try to upload a file larger than 10MB using an older browser such as IE9 the upload control changes its upload status to Error (and turns red) and gives you the option to cancel the failed download which works great.

However, if you upload a file larger than 10MB in any HTML 5 based browser the upload control breaks. The status gets stuck on 100% uploaded, and then none of the buttons in the control work (cancel, remove) until the page is reloaded. See attached images.

The issue seems to be related to IIS 7.5 as it performs as expected across all browsers when running it using the ASP.NET development server included with Visual Studio 2010. However, once it's uploaded and running on IIS 7.5 the odd behavior can be seen.

It seems like it doesn't post back when the file size limit is hit in the HTML 5 browsers. It looks like a few of these similar HTML 5 postback issues were handled in the latest AjaxToolkit release, but I wonder if the AjaxFileUploadControl was overlooked.

To duplicate:
1.) Upload the AjaxFileUpload.aspx from the sample site (and included with the AjaxControlToolkit) to an IIS 7.5 server.

2.) Modify the web.config file to resrtict the max upload size. Copy and paste the following in the system.web section.

<httpRuntime maxRequestLength="10240" /> in the sytem.web section.

3.) Try to upload a file larger than the size specified above in any of the newer HTML5 API based browsers

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>