uploader
uploader copied to clipboard
Can`t use reset or cancel methods in onBeforeUpload callback.
When trying reset or cancel queue in onBeforeUpload callback it is an error "TypeError: this.jqXHR is null".
I found a way to accomplish this by doing the following in onNewFile. below is a simplified way to do this:
onNewFile: function(id, file){ if(file.type){ ui_multi_add_file(id, file); } else { alert(file.name + ' '+t_i18n('must have a file type.')); file = null; return false; } }