Home  >  Article  >  Backend Development  >  What should you pay attention to when uploading files in php

What should you pay attention to when uploading files in php

WBOY
WBOYOriginal
2016-07-25 08:57:461051browse
  1. Please upload attachments:

Copy code

Tips: You can set the maximum value of allowed uploaded files through upload_max_filesize in php.ini.

In addition, there is a post_max_size that can also be used to set the maximum form data allowed to be uploaded, which is the sum of various data in the form. Therefore, you can also control the maximum value of uploaded files by setting this field. However, it should be noted that the value of the latter must be greater than the former, because the former is part of the form data of the latter.



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn