extjs - File Upload Form not going into success when successful -


I am submitting a file in a dialog in my form.

It is being stored correctly; I get the file perfectly accessible on the server via URL.

Once everything is correct on every server, we should supply 'success' = true in response. This is what I did, and this is what I am coming back to:

image here Enter the details

My code looks like this though, though I return success = true, it always goes to Case Ext.form.action.Action.SERVER_INVALID .

  frm.submit ({url: URLs.fileUploadURL, waitMsg: 'uploading file ...', success: work (form, action) {warning ('success',' Process file server ');}, failure: function (form, action) {warning (' unsuccessful: action failer type '+ action failer type) switch (action failer type) {case Ext.form.action.action .CLACININVALID: Ext message.lert ('Failure', 'Form fields can not be submitted with invalid values'); Pause; Case Ext.form.action.Action.CONNECT_FAILURE: Ext.Msg.alert ('Failure', 'Ajak Communications failed '); Pause; Case Ext.form.action.Action.SERVER_INVALID: // always goes here: (Ext.Msg.alert (' Failure, Action. Processing);}}});  

I do not understand that. What does success = true mean that success callback is being called?

Extl Odd Execs in the action is cruel in this action, it keeps almost a line about it. I have mainly decided that where I am through trial and error and I Have spent some days on the other side. Is there any other document? What are some of the pages mentioned about using 'File Uploader'?

The problem is in the wrong JSON, it is receiving from the server Remove the curly bracket around "files" and it will work.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -