I have a Drupal installation running on IIS 6. We recently upgrade to 6.17 and also upgraded any of the modules that needed "security update". When we try to upload a new image using IMCE, we get the following error message:
10:23:28 Uploading LBL wind study 2009-10 80px.png...
10:23:30 warning: move_uploaded_file(sites/default/files/images/press and news images/LBL wind study 2009-10 80px.png) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Inetpub\rnp\includes\file.inc on line 603.
10:23:30 warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\Temp\php7959.tmp' to 'sites/default/files/images/press and news images/LBL wind study 2009-10 80px.png' in D:\Inetpub\rnp\includes\file.inc
There also seems to be a (possibly) associated problem where the GMAP module has lost it's icons. When I try to regenerate the icons, a warning message comes up that says:
"The selected file could not be copied, because no file by that name exists. Please check that you supplied the correct filename."
I've done a bunch of searching on both issues and haven't found a solution that works yet. Does anyone have any experience with any of this and/or have some insight into solutions?
Thanks in advance.
Comments
Set Permissions on Directory
It sounds like you have a simple permissions issue. If you navigate to your D:\Inetpub\rnp\sites\default\files directory, right-click on your folder and select Properties, then Security Tab, then make sure that the user that your webserver runs under is included and has Write permissions to the directory. I'd wager that if you get the permissions back to write files to your files (and images) directories then your GMAP icons should start showing up too...
Thanks Tyler Also, I did
Thanks Tyler
Also, I did change permissions on the temp directory, but the error message persists.
New update:
Drupal can create a directory from, for instance, Configuration > File System. But it can't write to the directory that it creates.
Did you ever figure out the
Did you ever figure out the cause of this problem?
I'm seeing the same thing on a Windows 2008 server where Drupal can create folders under the files directory, but it can't create any files.
Can't upload images
Hello,
I have a new install of drupal 7, all works will until I try to upload an image using field image.
I have tried to change the permission to 777 for all the files/directories, change the grp to apache and the user to myuser, the domain name... nothing, the same problem and I'm not alone... Anyone knows the problem, I'm running Centos 5 on a dedicated server at Godaddy.
Thanks
Mario