Javascript 即使DropZone中的maxFilesize设置为500,也无法加载文件大小超过20MB的文件
上面是我的dropzone java脚本代码。在这里,我将maxFilesize设置为500MB,并尝试上载22MB大小的文件,在C#中出现“超过最大请求长度”的错误,并且request.Files.Count显示为0计数。请在这方面帮助我。提前谢谢。它允许上载最大大小为2GB的文件。在web.config文件中更新此设置Javascript 即使DropZone中的maxFilesize设置为500,也无法加载文件大小超过20MB的文件,javascript,c#,html,Javascript,C#,Html,上面是我的dropzone java脚本代码。在这里,我将maxFilesize设置为500MB,并尝试上载22MB大小的文件,在C#中出现“超过最大请求长度”的错误,并且request.Files.Count显示为0计数。请在这方面帮助我。提前谢谢。它允许上载最大大小为2GB的文件。在web.config文件中更新此设置 Dropzone.options.dropzoneForm = { autoProcessQueue: false, uplo
Dropzone.options.dropzoneForm = {
autoProcessQueue: false,
uploadMultiple: true,
parallelUploads: 100,
maxFiles: 100,
maxFilesize: 500,
acceptedFiles: 'image/jpeg,image/png,image/tiff,application/pdf,.pdf,.jpeg,.jpg,.tiff,.tif,.pdf',
init: function () {}}
错误消息是否来自IIS?最大上载大小有限制。web.config文件中的maxAllowedContentLength
是什么?不,我还没有将该网站发布到IIS,在本地运行该网站。感谢您提供的信息,它工作正常,我能够保存该文件。
Dropzone.options.dropzoneForm = {
autoProcessQueue: false,
uploadMultiple: true,
parallelUploads: 100,
maxFiles: 100,
maxFilesize: 500,
acceptedFiles: 'image/jpeg,image/png,image/tiff,application/pdf,.pdf,.jpeg,.jpg,.tiff,.tif,.pdf',
init: function () {}}
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" maxRequestLength="2147483" executionTimeout="1600" requestLengthDiskThreshold="2147483647" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>