Jump to content

Problem Uploading Images


Recommended Posts

Having a strange problem uploading images to my products. I get this when I try and upload an image to a product that I have already created in the catalog:

1 error
image format not recognized, allowed formats are: .gif, .jpg, .png



The thing is, the image that I am trying to upload IS a .jpg. It is also under the maxium size (i.e. under 2000Kb). My webserver (the username running it anyway) has read/write access to the entire /img directory. Also, I have GD and every other image program compiled and installed into PHP. During my initial install of Prestashop, the first install page had green checkmarks on it so I know I meet any and all requirements.

Any ideas?? Not sure what else to try.

Link to comment
Share on other sites

Im almost facing the same problem, with the difference that i get a 304 Error and not Img Format not recognised. I think we should both look on how to do that by importing data records with *.csv files.

I cant figure out why i can upload images through the BO-interface for Categories, but not for Products.

Have a look here: http://www.prestashop.com/wiki/Importing_Product_Data

http://www.prestashop.com/forums/viewthread/10511/installation_configuration__upgrade/importing_via_cvs_product_with_multiple_images_dot_


http://www.prestashop.com/forums/viewthread/12639/installation_configuration__upgrade/import_issues

I will try to delete all my records and then try to repopulate the db with *.csv files, where you will have the full path of your product-images as a field (imagine it as a column inside a db's table ).

Keep trying and reading :))

Regards

Link to comment
Share on other sites

OK after lots of brainstorming..i reached to the following conclusions..and finally i can upload product images from the BO :))

If you can indeed create product records through BO, but the product-image is not uploaded to the /img/p folder, but there is a "update successful" message, and supposed you have GD support in your PHP..this is why it happens:

the upload script tries to copy first the image at /img/tmp/myproduct.jpg and then transfer it to /img/p/myproduct.jpg

As my company uses a dedicated Windows server 2003 box, with IIS 6 :((( i had really big problems with the permissions...anyways what i did was to change the permissions of the /tmp folder to 777 as my rest of the /img folders and it worked fine! i can upload product images through the interface of the BO from the 'Catalog'.

This is only applied to situations where u can create a product record through the BO but cannot upload any images.

I hope this helped!

Regards

Dennis

11108_CZWalVcfjm3dtPCOmOKO_t

Link to comment
Share on other sites

I tried changing the permissions on my img folder to 777 (RWX) but it still says the image format is not recognized...

Not sure what else to try. Guess I will have to try another opensource cart. Its a shame too, as I loved the way PS looks.

Link to comment
Share on other sites

What web server and O/S are you using? can you give some more details about your problem?

Prestashop is the best open source e-commerce framework!!! Try to understand the way it functions instead of just trying other frameworks; its fully modularised plus its web standards compliant which is really crucial for web development.

What type of file are you trying to upload? *.png , *.jpg ?? Also you need to change the permissions recursively to the /img/ folder so it applies to all the folders in it....

But as ive said...try to set /img/tmp to 777 as well! It does work.

P.S. Try to see the logfiles of your web server if you can..and see when you try to upload the image, what is the error message in Firebug's "NET" tab, if you have.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...