If any of you like me are hosting your WordPress blog on a Windows machine you may have had issues when uploading images/media using the admin interface.
When I tried to upload images or any media for that matter – it would upload but then the thumbnail of the image itself was greyed out. If I attempted to navigate to the URL of the image it would just display the classic red cross in the browser aka. Can’t find image!
After a bit of research it seems that PHP puts uploaded items in the temp directory (‘C:WindowsTemp’) and then once the upload is complete wordpress copies the file to the wp-contentuploadsyearmonth folder.
The reason that you cannot view the image in the browser is a permissions issue. When wordpress/php copies the image to the wordpress uploads directory it uses the permissions that are currently set on the temp directory.
To fix this problem simply give the ‘IUSR’ account Modify permissions on the WindowsTemp directory and restart IIS.
Next time you upload an image it should work correctly.
Hope this helps!