Home >Backend Development >PHP Tutorial >PHP upload file size limit_PHP tutorial
Configure the php.ini file (taking uploading files below 500M in size as an example)
Find the following options and modify ->
file_uploads = On; turn on the file upload option
upload_max_filesize = 500M; upper limit of uploaded files
If you want to upload a relatively large file, the above two are not enough. You must increase the server cache limit and lengthen the maximum execution time of the script
post_max_size = 500M; post upper limit
max_execution_time = 1800 ; Maximum execution time of each script, in secondsMax_input_time = 1800 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume ( 128MB) memory limit