vue-upload-component
vue-upload-component copied to clipboard
chunked upload callbacks features + axios instead of custom requests
We need this feature for chunked upload processing with dedicated callbacks in our application.
@lian-yue What do you think about below refactoring (axios insteadof XMLHttpRequest) and adding new callbacks features ?
I preparing set of improvements in specific UI solution - object storage web client.
We have been creating UI with multi upload objects (based on S3 API) supporting sessions on client/webbrowser side (using IndexedDB).
Additional backend session storage for uploaded chunks isn't needed. It's possible with callback features from this Pull Request.
Of course axios it's stadard in many UIs. This change is helpfull for local dev. backends calls easy mocking. We have settings for HTTP client in our UI and this change allow us propagating the same setup to to lower layer (to axios in this component).
@lian-yue Any comments for below PR with callbacks and switching to axios (standard in today JS/TS impl.) ? Below code was deployed and tested on production with ~1k internal users.