safrazik / vue-file-agent

The most beautiful and full featured file upload component for Vue JS
https://safrazik.github.io/vue-file-agent/
MIT License
731 stars 93 forks source link

Resumable (tus) uploads don't emit upload, upload.error #165

Open LauraTran opened 2 years ago

LauraTran commented 2 years ago

To Reproduce

<vue-file-agent 
   :resumable="true" 
   :uploadUrl="'/some/tus/upload/endpoint/'"
  @upload="onUploadSuccess"
></vue-file-agent>

Expected behavior Once the file uploads, the method onUploadSuccess should be called.
Currently it's not being called because the method upload just returns the result and does not emit the event as it does when resumable is false.