PDA

View Full Version : Problem with file upload in new version of Google Chrome



doron008
18 Nov 2013, 6:39 AM
After updating chrome browser (version 31, Win XP) forms with 'fileuploadfield' stopped working (option 'fileUpload' is true). In Developer Tools I see status canceled after trying to submit form. Also I found that I can't set headers in this case (forms with uploading files).
In older versions of Chrome and other browsers everithing works.


Please help.

slemmon
20 Nov 2013, 9:29 AM
Do you have a test case you can share? You can create/share test cases at https://fiddle.sencha.com if that helps (forum login / password to log in).

Also, are you seeing the issue on ExtJS 3.4.1.1 or another version?

doron008
21 Nov 2013, 1:24 AM
Thank you for your answer.The problem is solved by removing patch for opera 10 (http://www.sencha.com/forum/showthread.php?76229-CLOSED-DUP-3.0.0-File-upload-does-not-work-in-Opera&highlight=file%20upload%20opera).

Franck Arrigoni
27 Nov 2013, 2:12 AM
Thanks

Eric24
29 Nov 2013, 3:13 PM
Can anyone provide some more detail on the "fix" for this issue? I've tried modifying the SSL_SECURE_URL in various ways, but the Chrome issue remains. Based on tracing my application, it appears that the JSON returned in the HTML body is not getting properly parsed. In my case, too, this works on all browsers except the latest version of Chrome (31.0.1650.57 m), and there, it fails with or without SSL (i.e. HTTP or HTTPS).

Eric24
29 Nov 2013, 6:49 PM
Can anyone comment on this proposed "fix" for what appears to be a bug in Chromium? Note that the topic is about ExtJS 2.x, but I've confirmed that the same issue is exists in 3.4 (not sure about 4.x).https://code.google.com/p/chromium/issues/detail?id=321160Is the SSL really only for old versions of IE? Are there other places in ExtJS 3x or 4x that might be affected by this?

slemmon
2 Dec 2013, 8:30 AM
Do you have a test case you can share? You can create/share test cases athttps://fiddle.sencha.com (https://fiddle.sencha.com/) if that helps (forum login / password to log in).

michal_simon
12 Dec 2013, 4:45 AM
Hi,
I fixed it by using the code:



if (!Ext.isDefined(Ext.isChrome31)) {
Ext.isChrome31 = /\bchrome\/31\b/.test(navigator.userAgent.toLowerCase());
};
if (Ext.isChrome31) {
Ext.SSL_SECURE_URL = 'javascript:""';
};

nik600
16 Dec 2013, 2:59 AM
thanks to michal_simon, after you patch the bug seems fixed

vansante
16 Dec 2013, 5:21 AM
The supplied solution did not work for me (all icons where it would use the BLANK_IMAGE or SSL_SECURE url the icons would fail to load.

I used this to make it work:



Ext.BLANK_IMAGE_URL = '/images/s.gif';
Ext.SSL_SECURE_URL = '/images/s.gif';

// This should fix the weird file upload bug.
if (Ext.isChrome) {
Ext.BLANK_IMAGE_URL = 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';
Ext.SSL_SECURE_URL = 'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';
};

nexttopevent9x
16 Dec 2013, 5:54 PM
oh same me