Guest Posted November 27, 2006 Posted November 27, 2006 Hey all, I am an extremely new user of osCommerce, am taking over a site with an installation running (but not hooked up on the payment end...)...the previous developer somehow added images to new products with no problem, but I cannot seem to get one to work...I can add a product or new category just fine, have even located where the previous developer housed the other product images and put my images in there as well, but when I click the browse button to locate the image (on my machine through the admin interface) it will pop the local path in and then give me a broken image on the preview page...this is the same when I browse for my local file, or when I just supply the file name only... Help! What am I doing wrong? thx, H
jdvb Posted November 27, 2006 Posted November 27, 2006 lol, you do not have to use ftp to upload images for your shop. just browse your loval file and upload your image, it will display in a green bar on the top of your previeuw message if the file upload was successfull, if not it will be a red bar. when you edit an existing product, can you then see its image in the previeuw pane?
goneflyfishin Posted November 27, 2006 Posted November 27, 2006 I am also having a problem adding new images to products. I am uploading them from my computer but I get an error message saying Warning: move_uploaded_file(c:\hosting\webhost4life\member\goneflyfishi/catalog/images/Flies.gif): failed to open stream: Permission denied in c:\hosting\webhost4life\member\goneflyfishi\catalog\admin\includes\classes\upload.php on line 94 Warning: move_uploaded_file(): Unable to move 'C:\PHP\uploadtemp\php9F.tmp' to 'c:\hosting\webhost4life\member\goneflyfishi/catalog/images/Flies.gif' in c:\hosting\webhost4life\member\goneflyfishi\catalog\admin\includes\classes\upload.php on line 94 Line 94 on upload.php is: if (move_uploaded_file($this->file['tmp_name'], $this->destination . $this->filename)) {chmod($this->destination . $this->filename, $this->permissions); So I think it is a permissions error but I am not sure of how to change the permissions on a folder. I am using the FTP client LeechFTP which lets me set attributes of a folder. When I go to change the permissions to 777 or whatever it says it changes it then I click back on the same folder and its back to 644 or 666. Is there a way to change permissions with the admin? Is there a problem with my tmp folder? Any insight would be much appreciated. Thanks! Steve
Guest Posted November 28, 2006 Posted November 28, 2006 lol, you do not have to use ftp to upload images for your shop.just browse your loval file and upload your image, it will display in a green bar on the top of your previeuw message if the file upload was successfull, if not it will be a red bar. when you edit an existing product, can you then see its image in the previeuw pane? JDVB, I do not get any sort of bar when I use the browse button...I browse, the correct local path for the image pops into the field, then I hit the preview button and I get a broken image link...the images already uploaded are displayed in the preview pane and their uploaded file names are listed below the upload field and browse button when on the editing page...but I cannot get a new image to upload for a new product...do you have any suggestions for me? Thanks for any help, H
goneflyfishin Posted November 28, 2006 Posted November 28, 2006 Make sure your permissions are set to allow writing to the images folder. I made sure they were right and now it works, I was having the same problem as you are. Hope that helps. Check your host on how to set folder permissions.
Guest Posted November 28, 2006 Posted November 28, 2006 Make sure your permissions are set to allow writing to the images folder. I made sure they were right and now it works, I was having the same problem as you are. Hope that helps. Check your host on how to set folder permissions. Goneflyfishin, The permissions on the folder /store/images/ is set to 777, if this is the incorrect images folder please let me know...is there somewhere in one of the config files where I can check where the default products images folder is set? I am in version 2.2 fyi, and thanks again for any help! H
Recommended Posts
Archived
This topic is now archived and is closed to further replies.