Jump to content

[SOLVED] Cannot upload product image


Recommended Posts

When I upload an product image in the admin section Prestashop gives me a success message. However the image does not show in the shop then. And it also does not show in the admin section after the upload.

 

In my case it is supposed to be created in "/presta/img/p/1/4/9/8/1498.jpg". But there is no directory with the name 8.

 

I do not have my document root in / but in /presta. I redirect to this folder. I did so by adding the following rules to my /.htaccess file:

 

RewriteCond %{REQUEST_URI} !folder/
RewriteCond %{HTTP_HOST} ^mysite.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.mysite.com$
RewriteRule (.*) /presta/$1 [L]

Maybe it has something to do with that? What can I do to solve my problem?

 

Link to comment
Share on other sites

I found what was wrong. 1 or 2 weeks ago I was experimenting with setting up a CDN. During that time I changed the constant for the image directory. So now I changed it back. It all works now. It is kind of embarassing, but that is how it happened.

Link to comment
Share on other sites

  • 8 months later...

I know this thread was from a while ago, but I am experiencing the exact same symptoms and cannot figure it out! The image 'uploads successfully' but the thumbnail is of a broken image. When I go into the files, I find that there is no folder/directory that the image is supposed to be called from. 

 

I would love any help!

 

 

Thanks,

Michelle

Link to comment
Share on other sites

×
×
  • Create New...