We had some issues at work with uploading images to our WordPress blog. It was super annoying. We kept getting the following error when trying to upload an image using the Upload/Insert function in WordPress:
“The uploaded file could not be moved to C:\inetpub\www\website\wp-content\uploads”
It was difficult to find a solution because there is a large majority of WordPress users who use Apache as the web server. I was finding little info on IIS7 and Server 2008. I saw plenty of forum posts with the exact problem. The particular poster would then reply to his own detailed question and say “Thanks everyone! I figured it out on my own.” Ah WHAT? Post what your solution was so it benefits the community. So this is why I am posting this on my blog.
Most of the recommenced solutions were to give the IUSR account write/modify permissions to all the directories down to the uploads directory. This did not work for me. We dug into IIS7 and started looking at the authentication section of IIS7 for that site. “Anonymous Authentication” was set to a user that did not exist. So we changed it to use the application pool identity and it worked great.
This worked great. I could instantly upload a image to a WordPress post. I hope this helps you out in your journey to solve the permissions issue with the image unloader in IIS7 and WordPress.
Feel free to comment if the solution worked for you.