Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Problem with file upload in new version of Google Chrome

  1. #1
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default Problem with file upload in new version of Google Chrome

    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.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Vote Rating
    247
      0  

    Default

    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?
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha User
    Join Date
    Nov 2013
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Thank you for your answer.The problem is solved by removing patch for opera 10 (http://www.sencha.com/forum/showthre...upload%20opera).

  4. #4
    Sencha User
    Join Date
    Feb 2009
    Posts
    1
    Vote Rating
    0
      0  

    Default How to "remove the patch for opera 10" ?

    Thanks

  5. #5
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    534
    Vote Rating
    0
      0  

    Question

    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).

  6. #6
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    534
    Vote Rating
    0
      0  

    Default

    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/i...il?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?

  7. #7
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Vote Rating
    247
      0  

    Default

    Do you have a test case you can share? You can create/share test cases athttps://fiddle.sencha.com if that helps (forum login / password to log in).
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our human resources manager: fabienne.bell@sencha.com

  8. #8
    Sencha User
    Join Date
    Jul 2011
    Posts
    1
    Vote Rating
    0
      0  

    Default My solution

    Hi,
    I fixed it by using the code:

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

  9. #9
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    61
    Vote Rating
    0
      0  

    Default Thanks !

    thanks to michal_simon, after you patch the bug seems fixed

  10. #10
    Sencha User
    Join Date
    Jan 2009
    Posts
    1
    Vote Rating
    0
      0  

    Default

    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:

    Code:
    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==';
    };

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •