Cause of error
Basically it exceeds or does not meet the server’s configuration for uploading files. So what are the server-side configurations?
First consider uploading what we used? POST, upload
So look for these items in php.ini:
file_upload:On
upload_tmp_dir=— —Temporary file storage directory;
upload_max_filesize=2M
max_file_uploads=20——The maximum number of files allowed to be uploaded at one time
post_max_size=8M——The maximum value of data sent in post mode
Other related configurations
max_exectuion_time=-1 ——Maximum execution time to prevent the program from occupying server resources;
max_input_time=60
max_input_nesting_level=64——Input nesting depth ;
memory_limit=128M - the maximum independent memory usage of a single thread
In short, it is all related to the configuration of resources
Error number
Note: This error message is the information uploaded in the first step, that is, when uploading to a temporary folder, not when moving or copying. Next Section