We are unable to upload small image files (less than 1 MB files) on our Drupal 7.10 site which uses IIS 7.5. I can browse to the GIF and JPG files but when I click upload I get an error message that the file "could not be saved. An unknown error has occurred." The folder permissions look good. I suspect that this may be a problem with IIS interacting with Drupal. I would love it if the client had Apache installed instead of IIS. Any help would be appreciated.

Comments

derherrberger’s picture

It has been years since I tried to run a Drupal on an IIS Web server.
Among many other problems I had to mix backslashes and slashes for the path of the private files system. Now in Drupal 7 it's possible to save the files within the Web-Directory as described here. But you have to make sure that the Deny from all access rule that is implemented in a .htaccess works on your IIS.
Another functionality implemented with .htaccess are niceURLs. If niceURLs does not work correctly it could cause problems with the upload AJAX request.
The end of my experience with Web Development on IIS was to set up a WAMP environment.

cgroche’s picture

Thanks for the response. We're in the process of reloading the site to run under Apache rather than IIS. I did a restore of the site to my laptop running the Acquia Dev WAMP stack (running Apache), and the image file upload problem is non existant.

darrell_ulm’s picture

Your question has been sitting here for a while.

If you are running Windows as your host for now, you probably want to look at something like XAMPP. It is easy to install and setup and can give decent performance, operation in Windows.

http://www.apachefriends.org/en/index.html

There are some others out there as well. If you haven't already, check this link.

http://drupal.org/documentation/install/windows

You may need to be admin to change a few parameters.

Eventually if you have the means to, recommend moving to a Linux host, but as long as you are running Apache in Windows it will work pretty well.

cgroche’s picture

Thanks for the info. We decided to move away from IIS to Apache on web server. I appreciate your advice.