5

When i was adding the product image in admin panel. I am getting successfully uploaded text. but image cannot been uploading, could not seen in product page in frontend and backend Also

Tried:-
1. Go to Cache Management, Refresh all caches, Flush all other caches. Logout admin.
2. Clear browser caches, especially browser data and cached images & files. Close browser.
3. Clear your CDN Cache! (we are Not Using)
4. Reload Apache or restart your server
5. Open your fresh browser, and login to admin. Test your image upload. If still not working, use private browsing or incognito.

Above steps are not helped me.

Below image shows Google chrome error enter image description here Please Help me.

  • pls upload small size image and check. then after let me know if any issue – Nikunj Vadariya Oct 20 '16 at 9:15
  • @NikunjVadariya. Now i was tried with 261*281 size image. Getting the same issue. – Crock Oct 20 '16 at 9:19
  • check answer. let me know it works or not. – Nikunj Vadariya Oct 20 '16 at 9:22
  • The solution is not working anyone else. – Crock Oct 20 '16 at 9:51
  • 2
    @TejabhagavanKollepara , I already mentioned in my question, everything done. (5 steps). No use. – Crock Oct 25 '16 at 13:25
1

To perform this fix, open the file:

lib/Varien/File/Uploader.php

Search for this line:

chmod($destinationFile, 0640);

Replace it with this line:

chmod($destinationFile, 0644);

Search for this line:

chmod($destinationFile, 0750);

Replace it with this line:

chmod($destinationFile, 0755);

Save the file and refresh Magento’s cache. You should now be able to upload images correctly with permissions that the web server can access.

2) Flushed Magento Cache and Simply clear browser Cache... Logged out... and logged in with a fresh browser.

  • I cannot find chmod($destinationFile, 0750); this line in Uploader.php but i having if (!(@is_dir($destinationFolder) || @mkdir($destinationFolder, 0750, true))) { . can i change the permission in that line?? – Crock Oct 20 '16 at 9:26
  • pls try my 2 point : Flushed Magento Cache and Simply clear browser Cache... Logged out... and logged in with a fresh browser. – Nikunj Vadariya Oct 20 '16 at 9:31
  • I have tried. No joy. having same issue. – Crock Oct 20 '16 at 9:36
  • @Vijay-CyberLocker you are WC :) – Nikunj Vadariya Sep 6 '18 at 4:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.