PDA

View Full Version : [INFOREQ] File upload



R56
17 Nov 2011, 5:14 PM
Hi,

Long story short: callback of file upload request doesn't work when the upload response is http request code 204: No Content. Request is being done and everything goes great until:
Ext.fly(frame).on('load', Ext.Function.bind(this.onUploadComplete, this, [frame, options]), null, {single: true});
in upload method of Ext.data.Connection.
The onUploadComplete is never fired because... surprise, surprise - the load event is never fired because its never loaded because it's standard way of dealing with No Content responses.
I don't know if there even is workaround for this workaround or not. html5 ftw...

Best regards,
R

mitchellsimoens
19 Nov 2011, 2:51 PM
Why not return a 200?