Bug with singleUpload when you return an error? Ignores state = uploading
Hi Saki,
I'm using an Ext.ux.UploadPanel with singleUpload:true and enableProgress:false, and Ext 2.3. If there's an error, I return something like this:
Code:
{"success":false,"errors":{"ext-gen817":"Upload failed"}}
The uploadCallback method notices the value of "success", and calls processFailure. This contains the following code:
Code:
// some files may have been successful
records = this.store.queryBy(function(r){
var state = r.get('state');
return 'done' !== state && 'uploading' !== state;
});
So it ignores the responses for files where state is "uploading". But that seems to be the state for all files I'm currently in the process of uploading. So it doesn't find my error message. As a result, the icon next to the file keeps spinning, instead of showing the error icon.
Am I missing something? I don't see where it would change the state to anything but "uploading". If I remove this check, it seems to work.
Thanks,
Jacob
Very new to Ext and FileTree
Hi Saki,
Firstly awesome job you are doing and what Ext can do.
I am very new to Ext and have stumbled across your site.
I have managed to struggle through with the FileTree extension i downloaded on page filetree.extjs.eu. When i look in the server logs they mention filetree.php. I cannot find this anywhere, is there something i am doing wrong?
Also reading this blog it looks like there is a newer version and also Ext 4 is available. Could you recommend where i find the latest working version and what version of Ext i should use.
Also maybe a naive question, but does filetree populate the tree automatically from the server, or do i have to write something to populate it?
thanks
Peter
:-/