This article mainly introduces the PHP file upload configuration maximum value, has a certain reference value, now share to everyone, the need for friends can refer to
PHP File upload Configuration maximum value
Open PHP.ini, first find
;;;;;;;;;;;;;;;;; File uploads;;;;;;;;;;;;;;;;;
There are several parameters that affect file uploads:
File_uploads = on; switch to allow uploading of files over HTTP. The default is on Upload_tmp_dir, the file is uploaded to the server where the temporary files are stored, if not specified will be used the system default temporary folder Upload_max_filesize = 8m ; Wang Wen Business, That is, the maximum size allowed for uploading files. Default is 2M
Found it
;;;;;;;;;;;;;;;;;; Data handling;;;;;;;;;;;;;;;;;
There is one more item:
Post_max_size = 8m; The maximum value that can be received by the form Post to PHP, including all values in the form. Default is 8M
Generally, after setting the above four parameters, uploading <=8m files is not a problem, in the network normal situation.
However, if you want to upload a large volume of >8m files, only set the above four items will certainly be able to pass.
Unless your network really 100m/s upload high speed, otherwise you have to care about the following parameters: