I'm capturing the dropzone accept event in the options like (code below) and have "autoProcessQueue" set to 'false' as I need a BLOB to pass another function.
I've spent ages looking, but can't see how I trigger the appropriate event to remove the % bar and show the tick (file upload complete)
Can someone point me in the right direction?
Cheers,
Paul
dropzoneLocalOptions: {
url: "#",
thumbnailWidth: 150,
maxFilesize: 20000,
autoProcessQueue : false,
accept: function(file, done) {
var reader = new FileReader();
reader.addEventListener("loadend", function(event) {
this.bs_blob = new Blob([event.target.result], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"},"migrationPlan.xlsx");
}.bind(this)); // Bind "Data" from anon function (from Vue)
reader.readAsArrayBuffer(file);
file.upload.progress=100;
file.upload.bytesSent = file.upload.total;
done();
}.bind(this) // Bind "Data" from Vue
Hi,
I'm capturing the dropzone accept event in the options like (code below) and have "autoProcessQueue" set to 'false' as I need a BLOB to pass another function.
I've spent ages looking, but can't see how I trigger the appropriate event to remove the % bar and show the tick (file upload complete)
Can someone point me in the right direction?
Cheers,
Paul