1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    2
    Vote Rating
    0
    webtrash is on a distinguished road

      0  

    Exclamation Not working file upload in Chrome

    Not working file upload in Chrome


    Hello!
    I tested it in stable and beta.
    I created upload form like in this example: http://www.extjs.com/deploy/dev/exam...le-upload.html and it's not working. Message "Uploading your photo..." is not disappearing (but form upload is working and script's result returned : {success:true, file:"myfile.png"}). In other browsers (FF, Opera, IE) - everything ok, message about success uploading is showing.

    Example (http://www.extjs.com/deploy/dev/exam...le-upload.html) is not working too. The same problem.

    What's wrong?

  2. #2
    Ext User
    Join Date
    Mar 2008
    Posts
    1
    Vote Rating
    0
    aapplle is on a distinguished road

      0  

    Default


    In the API document of Class Ext.form.BasicForm

    something is mentioned in the paragraph about "File Uploads"
    ".... If the server is using JSON to send the return object, then the Content-Type header must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body. .. "

    Maybe this will be helpful to you

  3. #3
    Ext User
    Join Date
    Mar 2010
    Posts
    2
    Vote Rating
    0
    webtrash is on a distinguished road

      0  

    Default


    Quote Originally Posted by aapplle View Post
    In the API document of Class Ext.form.BasicForm

    something is mentioned in the paragraph about "File Uploads"
    ".... If the server is using JSON to send the return object, then the Content-Type header must be set to "text/html" in order to tell the browser to insert the text unchanged into the document body. .. "

    Maybe this will be helpful to you
    Thanks, but it's not working too
    Here's headers :
    Code:
    Request URL:http://localhost/ajax/imageupload
    Request Method:POST
    Status Code:200 OK
    
    Request Headers
    Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryFQzG01GeXcAV1Azs
    Origin:http://localhost
    Referer:http://localhost/index.php/admin/index
    User-Agent:Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.55 Safari/533.4
    Request Payload
     ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_1"; filename="27389.png"
    Content-Type: image/png
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_2"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_3"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_4"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_5"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_6"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="image_7"; filename=""
    
    
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs
    Content-Disposition: form-data; name="product_id"
    
    14
    ------WebKitFormBoundaryFQzG01GeXcAV1Azs--
    
    Response Headers
    Connection:Keep-Alive
    Content-Language:ru
    Content-Length:186
    Content-Type:text/html; charset=utf8
    Date:Wed, 02 Jun 2010 05:52:35 GMT
    Keep-Alive:timeout=5, max=100
    Server:Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.4
    X-Powered-By:PHP/5.2.4
    Response content :
    Code:
    {"success":true,"msg":"","count":1,"result":[{"imgPath":"img\/goods\/dfe7c16b806628eca174d9ee6e7c8182_27389.png","fileName":"dfe7c16b806628eca174d9ee6e7c8182_27389.png","success":true}]}

  4. #4
    Ext User
    Join Date
    Sep 2010
    Location
    Thessaloniki, Greece
    Posts
    1
    Vote Rating
    0
    GRboss is on a distinguished road

      0  

    Default


    Hello out there.

    I have the same problem. Has it been solved somehow?

    Thanks!

Similar Threads

  1. File Upload not working in IE.
    By mallempati in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 27 May 2010, 11:58 AM
  2. Replies: 4
    Last Post: 7 Dec 2009, 9:52 AM
  3. Replies: 2
    Last Post: 23 Aug 2009, 6:18 PM
  4. [SOLVED] File upload just not working
    By alindsay55661 in forum Ext 2.x: Help & Discussion
    Replies: 12
    Last Post: 6 Jan 2009, 4:45 PM
  5. Simple File Upload Example Stop Working When Using xtype
    By fangzhouxing in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 28 May 2008, 3:28 AM

Thread Participants: 2

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi