I have a problem with the /media/tmp/
and /media/catalog/product/
folder of the magento. When attempting to upload product images into product creation, the image is sent to the site but does not appear in the product image listing as shown in the image below.
I know why this happens but I do not know how to solve it.
In both the temporary directory and the definitive directory, the image is 640 when it is pushed into the folder and should be given the 644 permission. When I use magento-cleanup.php
, everything returns to normal because the script simply resets all existing folder and file permissions.