lian-yue / vue-upload-component

Vue.js file upload component, Multi-file upload, Upload directory, Drag upload, Drag the directory, Upload multiple files at the same time, html4 (IE 9), `PUT` method, Customize the filter
Apache License 2.0
2.68k stars 700 forks source link

Is there any recommendations for file download after upload ? #430

Open Klodovsky opened 2 years ago

Klodovsky commented 2 years ago

Hello, thanks for this beautiful work @lian-yue !

Currently I have a tempFile variable in which I'm storing the selected files as their original structure (objects), and I'm getting the stored files as an array of names from my database and that's what's being rendering in the UI.. I want to add a download function @click , I think there isn't any Options / Props for this feature, would you recommend a way to get or generate the files url? Proabably something like this ? const url = window.URL.createObjectURL(new Blob([response.data]))