Jump to content

[SOLVED] Upload images via "File manager" not working


Recommended Posts

Hello,

 

We're facing the following issue:

 

When uploading an image via the "File manager", we drag and drop the image we want to upload and the File manager displays a thumbnail of the image with a tick on it, which means the image has been uploaded.

 

However, when we click on "Return to file list", the uploaded files does not appear.

 

We've also checked the permissions on the filesystem. /img/cms and all it's folder are set to 777.

 

On the oder hand, when running a find, we find out the image has never been uploaded as the file is not present at filesystem level.

 

PrestaShop 1.6.

 

Anyone can help? This is driving us crazy!

 

Can it be related to a PHP upgrade? We're not facing this issue in any other CMS running on the same server, only on that one.

 

Thank you.

post-835107-0-75424900-1409564830_thumb.png

Link to comment
Share on other sites

Seems like it was an issue with the temporary upload folder at PHP level.

 

Once this has been changed the images are being properly uploaded.

 

Since I'm new here I don't know how to change the topic title to [sOLVED]. Can someone please advise?

 

Thank you :)

Link to comment
Share on other sites

Sure.

 

Because of a PHP upgrade, the upload_tmp_dir within php.ini was set to /tmp .

 

I did just change it back to the temporary folder we had set-up for this purpose. This may be related to SELinux.

 

php.ini

upload_tmp_dir = /var/zpanel/temp/

After reloading the configuration the upload worked again.

  • Like 1
Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...