Flow.min.js not responding
-
04-10-2020 - |
Question
After upgrading to Magento 1.9.3 from 1.9.2.4 the product image Uploade button is not working.
When I choose the image and clicks OK the browser just freezes and crashes. I tried again on Firefox, and gets the message that a script in js/lib/uploader/flow.min.js:2 is not responding.
I run PHP 5.6.27-1 on Ubuntu (So I cant install the html5 upload button from Magento Connect as this does not support over 5.6.25)
EDIT: It seems that the function can not get the max filesize (this.file.size / this.flowObj.opts.chunkSize) in this part of the function the chunkSize is 0 and I believe that is the reason for the crashing
Solution
I have not found the real problem, but a workaround. De-Minifiy the file /js/lib/uploader/flow.min.js.
Then find the rows
bootstrap: function() {
this.abort(!0), this.error = !1, this._prevProgress = 0;
And directly after this add the following line
this.flowObj.opts.chunkSize = 1048576;
For some reason, the chunkSize is 0 and in the following row the file size is divided by the chunk size. So if chunk size is 0, then this will fail.
Hope that helps.