Open php. ini, first find
File_uploads = on; whether to allow file upload over HTTP. ON is enabled by default.
Upload_tmp_dir; upload the file to the place where the temporary file is stored on the server. If it is not specified, the default Temporary Folder will be used.
Upload_max_filesize = 8 m; wangwen business, that is, the maximum file size allowed to be uploaded. The default value is 2 MB.
Post_max_size = 8 m; the maximum value that can be received by posting a form to PHP, including all values in the form. The default value is 8 Mb.
Generally, after the preceding four parameters are set, uploading the file <= 8 m is not a problem, but the network is normal.
However, if you want to upload a large file larger than 8 Mb, you can only set the above four items.
Further configure the following parameters
Max_execution_time = 600; maximum time (in seconds) for running each PHP page. The default value is 30 seconds.
Max_input_time = 600; maximum time required for receiving data on each PHP page. The default value is 60 seconds.
Memory_limit = 8 m; maximum memory consumed by each PHP page. The default value is 8 M.
After modifying the preceding parameters, you can upload a large volume of files as permitted by the network.
Max_execution_time= 600
Max_input_time= 600
Memory_limit = 32 m
File_uploads = on
Upload_tmp_dir =/tmp
Upload_max_filesize = 32 m
Post_max_size = 32 m