1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    3
    Vote Rating
    0
    tetetz2 is on a distinguished road

      0  

    Default Files uploading & Webkit

    Files uploading & Webkit


    Hi all,
    I Have a problem with files uploading in webkit-based browsers (e.g. chrome, safari). Firefox does not have such error.
    If I upload a file, in console I can see that I receive a response from the server, but my responseText is empty.
    Week ago we find that if we change server's header content-type from application/json to the text/html then all works.
    But now this isn't helping.


    Something tells me that this console message is associated with this bug:
    Unsafe JavaScript attempt to access frame with URL http://domain.loc/document/document/create from frame with URL http://domain.loc/#/company/1/profile. Domains, protocols and ports must match.
    But here we have a request via the same protocol to the same domain and port, why Chrome/Safari gives such error?


    Thanks,
    Dmitriy

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,399
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I haven't had such problems and Chrome is my primary browser. Anything different you are doing in the form/field?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    3
    Vote Rating
    0
    tetetz2 is on a distinguished road

      0  

    Default


    OK, we'll take a look at our code and let you know

Thread Participants: 1

Tags for this Thread