![](/img/trans.png)
[英]Dropzone.js get error on post 500 (Internal Server Error) when try to upload file more then 5mb
[英]Payload Too Large - says in console from dropzone.js when try to upload file larger than 10MB
我正在使用 dropzone 上传具有以下设置的文件。
$("#my-awesome-dropzone").dropzone({ // The camelized version of the ID of the form element
previewTemplate: document
.querySelector('#tpl')
.innerHTML,
// The configuration we've talked about above
url: '{!! route('pam.submissions.store', $stage->id) !!}',
uploadMultiple: true,
parallelUploads: 100,
maxFiles: 100,
maxFilesize:200,//MB
autoProcessQueue: false,
timeout: 120000,
// The setting up of the dropzone
init: function() {
//init code
},
});
即使将“maxFilesize”的值设置为 200(即 200 MB),我也无法上传大于 10MB 的文件。 尝试上传时,控制台中出现错误,提示“POST {SUBMISSION-URL} 413 (Payload Too Large)”。 我想知道这背后的原因是什么。 我做错了什么吗? 如何解决这个问题?
这也是我的问题,我通过增加 php.ini 中的帖子最大大小来解决
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.