Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.
Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.
Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.
After trying other programs, you cannot upload images. It seems that the PHP environment configuration is still a problem. The solution is simple:
1. find the php. ini file;
2. find upload_tmp_dir and remove the comment and set an address, for example:
Upload_tmp_dir = D: \ temp
3. set the temp folder to be the same as the website user;
For example, if the user accessing the website is IUSR_aaa, the temp folder will also be given the same user permission;
4. restart iis
5. log on to the discuz background as an administrator and click "Tools> update cache" to upload images again!
Analysis: because it is a server, the permission settings are strict. Generally, this problem does not occur on your computer, because it is basically the permission of everyone.