Mar 31

Uploading Pictures to Wordpress in IIS

Category: Coding

So this is not really office warfare related but I wanted to share with you a problem I have been suffering from that I recently solved. I run my wordpress blog here on IIS for several reasons, mostly because I when I code I prefer aspx. The install was really quite easy and everything went smoothly until I tried to upload images and files. The database would add the entry for the files in the Media Library but they would not be actually uploaded to the server. For a while I “solved” the problem by manually uploading the content to the folder it was supposed to be in, just recently I decided it was to frustrating and that I was going to fix the problem. I started in the obvious place, Google, and came up with this link that got me part way there and filled me in on some enlightening stuff about php temp files.  However I still could not upload files.  After much digging around in wordpress on my own I found a setting that was a fault.

Under Settings->Miscellaneous in my dashboard I found a setting “Store uploads in this folder”  which for some reason was preconfigured to
“/homepages/55/a234577809/htdocs/dir/wp-content/uploads”

I simply changed that to be

“wp-content/uploads”

and voila everything works now.  Simple but hard to find tucked away in the Miscellaneous section of the Settings.

2 comments

2 Comments so far

  1. Bret January 13th, 2010 3:31 pm

    Thanks! This totally solved our similar problem. We moved a wordpress blog from a linux server to an IIS server. The absolute path to the image upload directory had been set correctly for the linux site, but caused image uploads to fail on the windows server.

  2. Ross RYdman July 28th, 2010 4:06 pm

    Thanks so much. I spent 2 hours going over PHP settings and permissions only to find this simple config options was the answer.

Leave a comment