Open PHP.ini, first find
;;;;;;;;;;;;;;;;
; File uploads;
;;;;;;;;;;;;;;;;
Area, there are several parameters that affect file uploads:
File_uploads = on;/whether to allow the switch to upload files over HTTP. The default is on is to open the
upload_tmp_dir //File upload to the server where temporary files are stored, if not specified will use the system default temporary folder
upload_max_filesize = 8m //Look at the text business, that is, the maximum size of the upload file allowed. The default is 2m
In
;;;;;;;;;;;;;;;;;
; Data handling;
;;;;;;;;;;;;;;;;;
Area, there is one more:
Post_max_size = 8m;//refers to the maximum value that can be received by the form Post to PHP, including all the values in the form. The default is 8m
Generally, set the above four parameters, upload <=8m file is not a problem, in the normal network situation.
However, if you want to upload >8m files, only set up the above four will be able to do. Unless your network really has 100m/s upload high-speed, otherwise you have to care about the following parameters:
;;;;;;;;;;;;;;;;;;;
; Resource limits;
;;;;;;;;;;;;;;;;;;;
Max_execution_time = 600;//php page run maximum time value (seconds), default 30 seconds
max_input_time = 600;//php page to receive data the maximum time required, Default 60 seconds
memory_limit = 8m;//The maximum memory consumed by each PHP page, default 8m