Large file uploads are generally not What are the reasons?

1. Check the form form
1.1 whether to add enctype = "multipart / form-data " attribute,
1.2 whether transmission scheme post

2.1 file_uploads see whether the property is on
the input in command mode file_uploads to quickly find the property;?
2.2 View upload_max_filesize set, size small size than if the set of php $ _FILES will lead to is empty, the default is 2M, can be changed they want;

View the following line in php.ini inside:

upload_max_filesize = 8M // upload limit
post_max_size = 10M // POST also limit
memory_limit = 20M // memory also limits

file_uploads = On // limit as you Gaosi

 

upload_max_filesize = 2G // this is the limit

max_file_uploads = 2000 // This is the limit

These values ​​into what I said, see if there is a problem, the other to confirm the upload of <form> There is no line like the following

<input type = "hidden" name = "MAX_FILE_SIZE" value = "500000">
this is also used to limit the size of the upload.

 

You can refer to the following

  1. file_uploads = on // whether to allow HTTP file uploads through the switch, enabled by default
  2. upload_tmp_dir // temporary file storage path
  3. upload_max_filesize 20M // maximum allowed to upload files
  4. post_max_size 22M // can be uploaded through a form POST size
  5. max_execution_time 600 // single PHP page maximum time allowed to run
  6. The maximum time required for a single max_input_time 600 // PHP page receive data, default 60 seconds, it is changed to 0 here, it is not time limit upload
  7. Execution of PHP memory_limit 256M // single page can take up the maximum memory, the default 8M

Guess you like

Origin www.cnblogs.com/bing2017/p/11605280.html