Forums / Installing on a Windows Server / Change directory and now image uploads don't work

Change directory and now image uploads don't work

Locked

Views: 1,558

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
26 Feb 2008, 12:46 AM
#1
audleman avatar

audleman

New Zenner

Join Date:
Jul 2007
Posts:
69
Plugin Contributions:
0

Change directory and now image uploads don't work

Hey Zenners,

I just renamed my /ZenCart directory to /store, and after changing the two configure.php files (the one in includes and the one in admin/includes), everything works like a charm....EXCEPT when I went to add a new product and include an image, I got these errors:

Warning: move_uploaded_file(D:/inetpub/yesmagazine/store/images/backissues/44cover.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Inetpub\yesmagazine\store\yesadmin\includes\classes\upload.php on line 112

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\WINDOWS\TEMP\php32FA.tmp' to 'D:/inetpub/yesmagazine/store/images/backissues/44cover.jpg' in D:\Inetpub\yesmagazine\store\yesadmin\includes\classes\upload.php on line 112

Image upload worked just fine before I renamed the directory. Any thoughts on where I should look for the problem?

Thanks,
Kevin

26 Feb 2008, 12:57 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change directory and now image uploads don't work

Check permissions on the directory you are uploading to

Zen-Venom Get Bitten

26 Feb 2008, 6:34 PM
#3
audleman avatar

audleman

New Zenner

Join Date:
Jul 2007
Posts:
69
Plugin Contributions:
0

Re: Change directory and now image uploads don't work

/images drw-rw-rw

Does that look right to you?

Kevin

26 Feb 2008, 6:50 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Change directory and now image uploads don't work

Try 777 or drwxrwxrwx

Zen-Venom Get Bitten