View Full Version : Handle download file on form.submit

15 Jun 2015, 6:34 AM
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?

15 Jun 2015, 7:48 AM
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")

<textarea>{success : true, message : 'successful upload'}</textarea>
The framework picks it up from there.

Hope this helps.

15 Jun 2015, 1:28 PM
Can you provide your implementation for uploading the file and how you're handling the response? The response should be available within the callback.