简体   繁体   中英

Payload Too Large - says in console from dropzone.js when try to upload file larger than 10MB

I am using dropzone for uploading file with following settings.

$("#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
        },

    });

Even after setting the value of "maxFilesize" to 200 (which means 200 MB), I can not upload file larger than 10MB. When try to upload, there comes error in console that says "POST {SUBMISSION-URL} 413 (Payload Too Large)". I was wondering what is the reason behind it. Is there anything wrong done by me ? How to fix this ?

这也是我的问题,我通过增加 php.ini 中的帖子最大大小来解决

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM