Summary of web file uploads (2) Change the Apache default post value to increase the file upload size

The solution for uploading files larger than 2MB

   #Default apache allows up to 2MB in size

   #Technical Manager --> Modify apache default configuration  php.ini (authorization)

   (1) Copy php.ini -> php1.ini

   (2) Modify php.ini

   (3) Stop apache/restart apache php.ini takes effect

     file_uploads=On Whether to allow uploading files On/Off

     upload_tmp_dir="C:\xampp\tmp" temporary file directory

     upload_max_filesize=2M The maximum upload file is 150M

     post_max_size=8M post maximum upload 158M

     max_execution_time=900 The maximum execution time of php is 900. The time that PHP waits for the script to finish executing before forcibly terminating the script. This time is calculated in seconds.

     max_input_time=900 i The maximum execution time of the form element submission file, this variable can limit the time to receive data through POST, GET and PUT in seconds. If your application is running on a slow link, you will need to increase this value to accommodate the more time required to receive data.

 memory_limit=256M PHP maximum memory usage

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325005258&siteId=291194637