Forums / Installing on a Windows Server / Cant upload images

Cant upload images

Locked

Started by joyner on 12 Apr 2007, 12:16 PM · Views: 2,167

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
12 Apr 2007, 12:16 PM
#1
joyner avatar

joyner

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Cant upload images

I can't upload images in the catalog area at all. My setup and installation went fine, but while trying to upload images anywhere i get these errors. I have looked for a day and a half to find an answer. I have check my permissions and they are all set to have full access, i am using iis, has anyone seen this before and can give me help. thanks

Warning: move_uploaded_file(D:/nationaldiscountnutrition.com/images/manufacturers/picture.JPG): failed to open stream: Permission denied in D:\nationaldiscountnutrition.com\admin\includes\classes\upload.php on line 112

Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php90.tmp' to 'D:/nationaldiscountnutrition.com/images/manufacturers/picture.JPG' in D:\nationaldiscountnutrition.com\admin\includes\classes\upload.php on line 112

Warning: Cannot modify header information - headers already sent by (output started at D:\nationaldiscountnutrition.com\admin\includes\classes\upload.php:112) in D:\nationaldiscountnutrition.com\admin\includes\functions\general.php on line 34

12 Apr 2007, 12:18 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Cant upload images

joyner:

D:/nationaldiscountnutrition.com/images/manufacturers/picture.JPG
You have a permissions problem writing to that folder.

With Windows hosting it's often necessary to talk to the hosting company in order to set certain folders as public-writable (ie: by the Internet Guest Account).

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2007, 12:37 PM
#3
joyner avatar

joyner

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Re: Cant upload images

Thanks for your reply. My company hosts the site so I have access to the server and the image folders are set to IUSR_WEB with all permissions: modify, read, write etc. I even made a new folder under Images and gave it all permissions with no luck. :(

12 Apr 2007, 12:44 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Cant upload images

I guess the next step is to research the possible causes of PHP not being able to complete its move_uploaded_file() function

move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php90.tmp' to 'D:/nationaldiscountnutrition.com/images/manufacturers/picture.JPG'Either it cannot read it from the place it uploaded it to, or cannot write it to its destination.

Perhaps studying at php.net or webhostingtalk.com might be starting points.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2007, 1:01 PM
#5
joyner avatar

joyner

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Re: Cant upload images

Will DO
thanks a lot.

8 Jun 2007, 9:06 PM
#6
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Cant upload images

Did you manage to solve this problem? If so, what needed to be changed?

9 Jun 2007, 10:24 AM
#7
joyner avatar

joyner

New Zenner

Join Date:
Apr 2007
Posts:
4
Plugin Contributions:
0

Re: Cant upload images

We had setup where you needed to login with user name and password to the directory. I did not think it would effect the files
but it did. We took off the login and it worked fine. It was a second
layer of security that was not needed anyway.
thanks