You need to set the following items in PHP.ini:
1.post_max_size = 10M
The maximum data submitted by the form is 10M. This item does not limit the size of a single file, but limits the submission data of the whole form.
The scope of restriction includes all the contents submitted by the form. For example, when posting, the title, content and attachments of the post. ...
2.file_uploads = On
Can you upload files? If closed, you will not be able to upload files.
3 . upload _ tmp _ dir = " D:/APM/PHP/upload temp/"
Cache directory used by the system when uploading files. If there is not enough disk space in this directory, you will not be able to upload files.
4. Maximum upload file size =2M
Maximum upload file size refers to the size of a single file when uploading files.
Relationship with post_max_size:
When posting in the forum, your post_max_size is set to 10M, and this item is set to 2M, so only 2M attachments can be uploaded, and five attachments can be uploaded at the same time.