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>
Hello Marcelo,
We do not have any known issues related to UploadFinished event, as for the maximum file size error, I am glad that you were able to resolve the issue.
As for the documentation, we do not plan to update it for now, although as you noticed, we should consider these file size and storage changes in the future in order to document them appropriately.
I believe we've been able to resolve this.
The maximum file size (in bytes) is 2147483647 setting it even one over this at 2147483648 is more than an int32 can hold for the IG webuploader.
I wonder if this could be more explicit in error messages or documentation. As file sizes and storage increase in the future it might be nice to be able to go over this limit -- I guess that might already be in the works.
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.
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.