Jump to content

[sOLVED] Images are not uploaded via csv product import


7 Sergi

Recommended Posts

Posted (edited)

Good morning everyone, I have searched the forum but have found no answer to my problem.

I have created a csv file from the example file provided by PS (8.1.4) and it correctly creates the products with all the fields.Only the images are not loaded. Let me try to explain how I proceed:

 

- I created an ‘uploads’ folder inside the ‘img’ folder. Both have permissions 755

 

- The image files have 644 permissions

 

- The import takes place without errors, but the image is missing in the product file from BO (see attachment).

 

- Selecting the image and going to the enlarge button I see that folders have been created which then contain the path and the image created by PS in the import (something like miosito.it/img/p/2/7/8/3/2783.jpg

 

- From FTP inside the folder mysite.co.uk/img/p/2/7/8/3/ but I only find the file index.php but no trace of 2783.jpg

 

 

I made a few dozen attempts by changing the location of the images folder, changing address with www.mysite.it... or mysite.co.uk/..., with http://... or https://... but with no better results.

 

Can anyone tell me where I'm going wrong?

 

Thanks

 

PS 8.1.4

PHP Version 8.1

DB Web server: Apache - Database client version: libmysql - mysqlnd 8.3.22 - PHP extension: mysqli Documentation curl Documentation mbstring - sodium Documentation - PHP version: 8.3.22

 

Translated with DeepL.com (free version)

Edited by 7 Sergi (see edit history)
Link to comment
Share on other sites

Hi.

There are probably two problems. Prestashop and the .htaccess file rewrite the paths to the img/*.* folders, so it can load the rewritten image URL. Or another possible error is that the image has the extension .jpg, but in fact it is, for example, .png.

Link to comment
Share on other sites

Posted (edited)

Hi ps8modules

Thank you for your reply.

- I checked the .htaccess file and I see that RewriteEngine is on (please see file attached). Probably I don't understand what you mean.

- I checked the image files, they are indeed jpg and have the extension jpg

- The images URL in the csv file is http://mysite.it/www/img/p/upload/Q0205XXa.jpg (I think it is correct but I see that entering the url on the browser gives me a 404 error page, but this also happens with images that are regularly loaded and visible in the tabs of other products.)

Schermata 2025-07-02 alle 11.40.34.png

Edited by 7 Sergi (see edit history)
Link to comment
Share on other sites

21 hours ago, 7 Sergi said:

- From FTP inside the folder mysite.co.uk/img/p/2/7/8/3/ but I only find the file index.php but no trace of 2783.jpg

 

What's the file inside this folder? This is the correct folder structure of the PS. You will not find anything like 2783.jpg. Inside the img/p/2/7/8/3/ there should be multiple files based on the Image settings of Prestashop like home_default, medium_default etc

 

1 hour ago, 7 Sergi said:

This URL seems incorrect. It should be like http://mysite.it/img/p/upload/Q0205XXa.jpg ?

Link to comment
Share on other sites

  • 7 Sergi changed the title to [sOLVED] Images are not uploaded via csv product import

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...