Hello,
We are trying to use the WebUpload module and are getting a "Max File Size" exceeded error for files around 25mb despite setting the limits at 2GB everywhere we can imagine.
Below are the relevant pieces. Can you offer any suggestions to resolve this?
Edit: Before giving the error the progress bar starts, jumps and stutters back and forth then quits.
Webconfig:
<add key="bufferSize" value="16384" /> <add key="allowedMIMEType" value="*" /> <add key="fileUploadPath" value="~/Uploads" /> <add key="maxFileSizeLimit" value="2147483648" />
<httpModules> <add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" /> </httpModules> <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"> <controls> <add tagPrefix="igjq" namespace="Infragistics.Web.UI.EditorControls" assembly="Infragistics4.Web.jQuery.v15.2, Version=15.2.20152.2273, Culture=neutral, PublicKeyToken=7DD5C3163F2CD0CB"/> </controls> </pages> </system.web> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule" preCondition="managedHandler" /> </modules> <handlers> <add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler" preCondition="integratedMode" /> <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </handlers> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483648" /> </requestFiltering> </security>
ASPX:
<script type="text/javascript"> function onErrorHandler(e, args) { $("#error-message").html(args.errorMessage).stop(true, true).fadeIn(500).delay(3000).fadeOut(500); } </script>
<div style='height: 300px; width: 100%; overflow-y: scroll; background-color: #e5e6e7' class='upload-box'> <igjq:WebUpload ID="SourceFileUpload" runat="server" AutoStartUpload="true" ProgressUrl="/IGUploadStatusHandler.ashx" Mode="Multiple" MaxSimultaneousFilesUploads="10" OnUploadFinished="SourceFileUpload_UploadFinished"> <ClientEvents OnError="onErrorHandler" /> </igjq:WebUpload> <div id="error-message" style='color: #FF0000; font-weight: bold;'></div>
Thank you for contacting us! My fist thought when I saw your question was that you should consider to update your product to a newer version. Also, our forum community is very rich when it comes to configuration issues like this, could you please have a look at this forum thread, where Martin is explaining in details possible causes of the issue and how to resolve them. As you can see configuration of the IIS depending on the version is also needed.
https://ko.infragistics.com/community/forums/f/ignite-ui-for-javascript/64887/how-to-cancel-uploading-a-file-on-the-client#329039
Let me know if you need further assistance.
Hi Zdravko,
I did go through the thread you mentioned to no avail. We have made sure that all the settings for file size are updated, for the site, on IIS, and in the web.config but we are still getting the error for even relatively small file sizes (even over 5mb)
It simply says 'max file size exceeded.' Do you have any other suggestions for trouble shooting this? It seems odd that it is throwing this error.
Also I've been able to notice that the "SourceFileUpload_UploadFinished" is actually firing before the file is done uploading/before this error message shows up. In other words it seems like smaller files that finish uploading before this fires are fine but anything that is a bit bigger throws an error. I need to keep this method if at all possible so hope there is a thought about this.
Are there any known issues with this?
Thanks for letting me know.