I tried to upload pictures, but it didn't work. Later I found out that it was a problem with the PHP parameter configuration.
The following summarizes the php parameters related to file upload. Note~
All these parameters are set in php.ini.
1.file_uploads
Set to On to allow file uploads via HTTP
2.upload_tmp_dir
The directory used for temporary storage when files are uploaded to the server. If not specified, the system The default temporary folder will be used (/tmp on my machine).
3.upload_max_filesize
The maximum allowed upload file size, the default is 2M.
4.post_max_size
The maximum value of post data that Php can receive (including the sum of all values in the form), the default is 8M.
5.memory_limit
The maximum amount of memory occupied by each php. This value must be greater than the file size allowed to be uploaded.
6.max_execution_time
The maximum time (seconds) for each php to run, the default is 30 seconds.
7.max_input_time
The maximum time (seconds) for Php to parse POST/GET data, the default is 60 seconds. This sets the maximum time in seconds a scripts is allowed to parse input data, like POST and GET.It is measured from the mement of receiving all data on the server to the start of script execution.