ASPxUploadControl Uploading-Large-Files 上传大文件
需要设置的地方web.cofig
第一个地方
<system.web>
<httpRuntime maxRequestLength="1048576000" />
</ system.web>
第二个地方
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1048576000">
</requestLimits>
</requestFiltering>
</security>
</ system.webServer>
<dx:ASPxUploadControl ID="ASPxUploadControl_sz_jskc" runat="server" Width="480px" ClientInstanceName="khd_ASPxUploadControl_sz_jskc"
AutoStartUpload="true" ShowProgressPanel="True" ShowTextBox="true" FileUploadMode="OnPageLoad"
ShowUploadButton="True"
OnFileUploadComplete="ASPxUploadControl_sz_jskc_FileUploadComplete" OnCustomJSProperties="ASPxUploadControl_sz_jskc_CustomJSProperties" Theme="SoftOrange">
<BrowseButton Text="浏览" />
<CancelButton Text="取消" />
<UploadButton Text="上传" />
<ValidationSettings
AllowedFileExtensions=".xls, .xlsx"
MaxFileSize="1048576000"
MaxFileSizeErrorText="文件大小不得超过1000MB!"
>
</ValidationSettings>
<clientSideEvents TextChanged="function(s, e){khd_ASPxUploadControl_sz_jskc.UploadFile();}"
FileUploadComplete="function(s, e) { if(e.callbackData != undefined)
alert('上传成功!'); else alert('上传失败!上传前请先关闭该excel文档');}" />
</dx:ASPxUploadControl>
原文链接:https://blog.csdn.net/ls_zai/article/details/76850319