Thanks for this great plugin. Being somewhat 'green' at both javascript and jQuery I was amazed at bow easy it was for me to get working. Just one thing left undone that I can not work out...
I have included the 'OnError' but I can not work out how to grab the data? To test this I removed all write permissions on the target folder and of course I want to be able to visually be notified there was an error uploading. So I wanted to look at the 'text' component of the errorObj but can't work out how to grab it. Actually am not even sure the onError is getting called... Any chance you could nudge me in the right direction please?
And- as an additional question... if the OnError is fired, is there a way of then stopping the 'onAllComplete' from being fired?
Thank you - I will study that more deeply. At first, quick test though, it didn't pick up that the folder didn't have write permissions. Went through the motions and looked just like it had uploaded successfully. Could that perhaps be a bug or do I need to do anything else to trap that condition?
And is there anyway to stop the OnAllComplete event if an error occurs?
No - sorry but this doesn't seem to work although I do not see why... For some reason whatever obstacle I put in the way (permissions, no upload folder etc) the ['error'] in $_FILES does not get populated and always shows success (value of zero). Does anyone have any ideas why this might be or is it flawed simply because it is not wrapped in a form? (Although this makes no sense either because all of the other elements of $_FILES are correctly populated... )
One conseqence of using this code (whether it works or not) is that the warning move_uploaded_files() outputs is sent back to the calling javascript. Prefacing it with '@' suppresses that successfully but $_FILES{file]['error'] still does not populate either way...