vue-clip icon indicating copy to clipboard operation
vue-clip copied to clipboard

Loading files already existing on server

Open mendiomon opened this issue 7 years ago • 1 comments

How can i load files already existing on server? Lets say i refreshed page and dont want to loose already uploadef files. I have backend endpoint that returns array of urls of files existing on server, so now i just have inserti it into vue.

mendiomon avatar Jun 23 '17 13:06 mendiomon

I'm working on something with a similar situation. I don't load already uploaded files into vue-clip though, I load them into some other files container component. I use clip to handle the uploading, displaying the progress, but once they're done, I throw the uploaded file into a different component.

When you reload the page, I use a created hook to make an ajax request for the uploaded files (based on session id or user id if they're logged in). IMO, Vue-clip isn't the right place to try and load files that are already uploaded. You might think ahead about what you want to do with the uploaded files, and structure a new files container based on your end goal.

alexsasharegan avatar Jun 23 '17 13:06 alexsasharegan