To upload a file using inputType: ‘file’, and for a form prescribed fileUpload: true.
Everything works fine, the file is saved. But after saving the file block success (from ajax request) is not satisfied. Ie all the stops to waitMsg: ‘Saving Data …’.
What could be wrong?
Also, remember to set the Content-Type header to correct MIME type in your server response: “text/html”. Anything else will result in ExtJS throwing an error when decoding your response.
In PHP, this can be done with
From ExtJS API docs:
Make sure you do escape special HTML characters as suggested. If you don’t, ExtJS may still succeed in parsing the server response but with unexpected twists: single quotes in HTML-like strings turn into
"', etc.