I configured a php environment on Windows 7 and deployed a WordPress website. This problem always occurs when uploading files.
I checked the reason online, probably because of permission issues. In the php installation directory. the upload_tmp_dir attribute is set in the ini program. You can find out that the default value is the C: \ Windows \ Temp directory, and then add the read/write permission to iis, I usually add the management permissions of everyone directly. This method is not safe and requires attention.
Set User Permissions:
Right-click the folder and open the Properties window.
Click the edit button:
I have added the everyone user here. You can select the user and select the permission to be granted to everyone in the permission box below.
If no everyone exists, click Add:
In the input box, enter everyone and click OK. At this time, the everyone user has been added. Follow the previous step to add permissions.