Results 1 to 3 of 3

Thread: Handle download file on form.submit

  1. #1

    Default Handle download file on form.submit

    Good day! Help me, please.


    I upload CSV file on server with form.submit method. Server response CSV with report.
    But, in this case, callbacks success and failure not calling, and I can't hide waiting mesage.


    How can I handle response from server?

  2. #2
    Sencha Premium User
    Join Date
    Mar 2011
    Posts
    287
    Answers
    35

    Default

    Our scenario is a little different, but the way we handle a file upload responses is to wrap it in a textarea:
    (content type : "text/html")
    Code:
    <html>
      <body>
        <textarea>{success : true, message : 'successful upload'}</textarea>
      </body>
    </html>
    The framework picks it up from there.

    Hope this helps.

  3. #3
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Answers
    165

    Default

    Can you provide your implementation for uploading the file and how you're handling the response? The response should be available within the callback.
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. standard form submit with jsonData for file download
    By pennstatephil in forum Ext: Q&A
    Replies: 3
    Last Post: 27 Apr 2015, 2:59 PM
  2. Replies: 2
    Last Post: 18 Jan 2014, 2:17 PM
  3. Download a File on Form submit
    By Urkman in forum Ext 3.x: Help & Discussion
    Replies: 9
    Last Post: 21 Mar 2012, 10:58 PM
  4. How to handle file download on ajax request post?
    By dbassett74 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 29 Oct 2010, 9:01 AM
  5. download pdf with form submit
    By igi in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 19 Feb 2010, 6:36 AM

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
  •