Jquery + formdata implements file upload. Error occurs when uploading a file greater than 20m, and it is normal if it is less than 20m.

jquery + formdata implements file upload. Error occurs if the file is uploaded more than 20m, and normal if it is less than 20m.

Mar.30,2021

I think your backend has imposed a restriction. It is no problem for me to upload projects with a length of more than 30m.


the server checks the configuration. It should not be the problem of the front end.


ask the elder brother in the background to check the file upload size limit. Different servers have different upload size limits by default.


1. Tomcat sets the default form transfer data size;
2, if you use nginx to modify the client_max_body_size; of nginx

Menu