I continuously get this ajax error "Max File Size Exceeded" when i try to upload any file over X size.
(i havent quite pin pointed the exact amount, but its for certain anything over 20MB.)
My WebConfig is:
<add key="fileUploadPath" value="~/Uploads" /><add key="maxFileSizeLimit" value="2147483648" /><add key="bufferSize" value="16384" /><add key="allowedMIMEType" value="*" />
<system.webServer> <modules runAllManagedModulesForAllRequests="true"> <add name="IGUploadModule" type="Infragistics.Web.UI.EditorControls.UploadModule, Infragistics35.Web.jQuery.v11.2, Version=11.2.20112.2025, Culture=neutral, PublicKeyToken=xxxxxxxxx" preCondition="managedHandler" /> </modules>
<handlers> <remove name="IGUploadStatusHandler" /> <add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*" type="Infragistics.Web.UI.EditorControls.UploadStatusHandler, Infragistics35.Web.jQuery.v11.2, Version=11.2.20112.2025, Culture=neutral, PublicKeyToken=xxxxxxx" preCondition="integratedMode" /> </handlers>
HTML:
<ig:WebUpload ID="WebUpload1" runat="server" Width="100%" AutoStartUpload="false"
OnUploadStarting="WebUpload1_UploadStarting" OnUploadFinishing="WebUpload1_UploadFinishing" Mode="Multiple">
<ClientEvents OnError="onError" FileSelected="fileSelected" CancelAllClicked="cancelAllClicked"
FileUploadAborted="fileUploadAborted" FileUploaded="fileUploaded" FileUploading="fileUploading" /> </ig:WebUpload>
Until now, the max file size limit was coming from "maxFileSizeLimit", however it seems to ignore that value now.
suggestions?
Thanks Tsvetelina . That Security setting partially helped, but not all the way. prior to adding the maxAllowedContentLength, when i selected a file that was over this "max file size exceeded" issue, the progress indicator would show 0/0B (as if it could read the file). But adding that maxAllowedContentLength now at least shows the correct file sizes. However i am still seeing the same results. Are the possibly other requestingfiltering settings i could try? that seems to be on the right path.
I have zero size restrictions anywhere. Only whats in the web config for the IG_upload. The serverside events never fire b/c the ajax error occurs prior to the postback. The clientside event UPLOADING does fire though. So between the clientside event firing and before the serverside, the error occurs.
i'll try to recreate a sample project for you this morning.
Hello Adam,
You can take a look at the below forum post about the file size limit setting when using IIS7:
http://community.infragistics.com/forums/t/64887.aspx#329039
Hope hearing from you.
Hi Adam,
Are you sure that you haven't set file size limitation inside of your serverside/clientside events? We haven't till now such a problem so please revise your code. Is it possible to create for us some little sample?
Thanks,
Miro Hristov