Please confirm the following parameters of php.ini file first
file_ uploads = on // Whether to allow file upload via http. The default is on, that is, on
upload_ tmp_ dir // The file is uploaded to the place where the temporary file is stored on the server. If it is not specified, the system default temporary folder will be used
upload_ max_ filesize = 10m // That is, the maximum file size allowed to upload. The default is 2m
post_ max_ size = 10m // It refers to the maximum value that can be received by PHP through form post, including all values in the form. The default is 8m
Generally, after setting the above four parameters, upload & lt= 10m files are not a problem under normal network conditions. But if you want to upload & gt; 10m large volume files, only setting the above four items may not work.
Further configure the following parameters
max_ execution_ time = 600 // The maximum running time of each PHP page (seconds), which is 30 seconds by default
max_ input_ time = 600 // The maximum time required for each PHP page to receive data is 60 seconds by default
memory_ limit = 128m // The maximum memory consumed by each PHP page is 8m by default
If all the above settings are set and still cannot be uploaded, add a: client in the ngnix.conf configuration file of the website_ max_ body_ size 200m;
Read More:
- Nginx upload error 413 request entity too large
- Nginx modifies the front end request size limit (413 request entity too large)
- Vs2019 + QT parses the XML file and reports an error at doc.setcontent (& file)
- QT + MySQL generates an EXE file and reports an error “driver not loaded”. Solution steps
- Vue introduction path is correct, but it always reports an error: already included file name‘ ××ב differs from file name ‘ ××ב only in casing.
- The echots in Vue reports an error. After obtaining the DOM element, the chart can be displayed. The console still reports an error
- HTML method IE8 reports an error, IE8 jQuery Ajax obtains static resources reports an error, typeerror denies access
- Vue agent reports an Error 404 nginx configuration method
- GeTx reports an error in the get request using getconnect
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- Unit Android converts c# class to JSON file and reports an error
- Java uses ZipFile to decompress the zip file and runs normally under Windows. Linux reports an error
- When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expected
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- An idea to solve Warning move_uploaded_file, failed to open stream in the process of php uploading files
- Lamdba in the studio part reports an error. Observe lamdba reports an error but can run
- Android network request framework okhttputils reports an error (okhttp3 cannot be found)
- Dm7 Dameng database dmrman reports an error OS_ pipe2_ conn_ Server open failed solution
- Arduino reports an error when writing a custom library file to solve the problem of not name of type, not declared in this scope
- Vs + QT reports an error “vs cannot open the source file qchartview”