Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Uploading images


elidor

Recommended Posts

Hi, I'm just setting up OsCommerce. Everything seems to be working fine, except I can't upload images when I add a product. The product information gets uploaded but I just get the box with the red cross where the image should be. If I right click on the box the properties only show the path to the images folder, and doesn't include the image file name eg http://www.equilore.com/catalog/images/

 

When I'm adding the products in Admin I get the following error messages:

 

Warning: move_uploaded_file(images/laundry.jpg): failed to open stream: Permission denied in C:\Inetpub\vhosts\equilore.com\httpdocs\catalog\admin\includes\classes\upload.php on line 94

 

Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\Temp\php3A4.tmp' to 'images/laundry.jpg' in C:\Inetpub\vhosts\equilore.com\httpdocs\catalog\admin\includes\classes\upload.php on line 94

 

My site is hosted on a Windows server and I've set the images folder to read and write. I'm only just learning about php, so it's all a bit foreign. Any help would be really appreciated. Thanks.

Link to comment
Share on other sites

your images directory needs to have write permissions (on windows uncheck the read only permission)

 

Hi John, Thanks for the quick reply. In my Control Panel I can set the following 4 permissions to 'Allow' or 'Deny' for each folder:

 

List Directory

Create Files

Traverse Directory

All Actions

 

I've set the images folder to Allow All Actions, which should allow me to upload images to it. Is this correct? Any ideas? Thanks, Jane.

Link to comment
Share on other sites

I have the same problem, but when I uncheck the read only box and then go back to the properties page to see if its gone, it's still there.

 

hello , i have the same problem , have not made any changes to the workstation and now i cant upload files to the store, cant uncheck the read only attribut in my windows xp , it get back after a made the change,

 

is there any ide? to fix this seems to be big problem .

Link to comment
Share on other sites

  • 2 weeks later...

Hi everyone,

anyonegot an answer? i got th e same error in my local host since i download the db form my live site......

thanks

regards,

unai

"Dream as if you'll live forever...

live as if you'll die today."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...