uploader icon indicating copy to clipboard operation
uploader copied to clipboard

Can`t use reset or cancel methods in onBeforeUpload callback.

Open Matvik opened this issue 6 years ago • 1 comments

When trying reset or cancel queue in onBeforeUpload callback it is an error "TypeError: this.jqXHR is null".

Matvik avatar May 01 '18 02:05 Matvik

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; } }

jojo avatar Sep 21 '18 21:09 jojo