4

Product image uploader not work after Magento 1.9.3 upgrade.

I click browse and then upload, it says complete for a second or 2 and then disappears and then no image displays.

What the issue?

7ochem
  • 7,532
  • 14
  • 51
  • 80
Peter
  • 41
  • 1
  • 2

4 Answers4

6

The Flash uploader has been replaced with a JS one. You only need to make sure you haven't missed the /js folder in the upgrade, and add this to your layout file

Layout file url :/app/design/adminhtml/default/default/layout/aijko/widgetimagechooser.xml

    <reference name="head">
            <action method="addJs"><file>lib/uploader/flow.min.js</file></action>
            <action method="addJs"><file>lib/uploader/fusty-flow.js</file></action>
            <action method="addJs"><file>lib/uploader/fusty-flow-factory.js</file></action>
            <action method="addJs"><file>mage/adminhtml/uploader/instance.js</file></action>
</reference>
Ajendra Panwar
  • 394
  • 3
  • 6
dlicheva
  • 350
  • 1
  • 9
  • And remove this if you have it anywhere in your layouts: – dlicheva Nov 04 '16 at 12:14
  • <reference name="head"> <action method="addJs"><script>lib/flex.js</script></action> <action method="addJs"><script>lib/FABridge.js</script></action> <action method="addJs"><script>mage/adminhtml/flexuploader.js</script></action> <action method="addJs"><script>mage/adminhtml/browser.js</script></action> </reference> – dlicheva Nov 04 '16 at 12:14
3

Have you uploaded any patches to your site ?

if yes then which patch ?

if you upload, then you need to go /lib/Varien/File and open Uploader.php

Go to line number 219 and change the permission 640 to 644.

Example: chmod($destinationFile, 0644);

Teja Bhagavan Kollepara
  • 3,816
  • 5
  • 32
  • 69
Rajan Soni
  • 1,019
  • 2
  • 11
  • 35
2

This solution worked for me! Remove this if you have it anywhere in your layouts:

<reference name="head"> <action method="addJs"><script>lib/flex.js</script></action> <action method="addJs"><script>lib/FABridge.js</script></action> <action method="addJs"><script>mage/adminhtml/flexuploader.js</scrip‌​t></action> <action method="addJs"><script>mage/adminhtml/browser.js</script></a‌​ction> </reference>
Igneous
  • 21
  • 1
1

As part of the 1.9.3/SUPEE update the SWF files for the uploader have been removed. You can switch to using an HTML based uploader extension. This is the extension I have chosen to use for the time being:

https://www.magentocommerce.com/magento-connect/maven-html5-uploader.html

In general, Flash has too many vulnerabilities and is not supported on mobile. Having an HTML based uploader will let you admin from almost any device.

Steven J
  • 808
  • 9
  • 21