![](/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.