-
-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Milestone
Description
Background: Currently the internal VueFilePreview component accepts only an instance of FileData. It would be better to support raw file data similar to the following:
<template>
<VueFileAgent v-model="filesData"></VueFileAgent><!-- file upload component with preloaded file data -->
<VueFilePreview v-model="filesData[0]"></VueFilePreview><!-- single file preview -->
</template> export default {
// ...
data: function(){
return {
filesData: [
// ...
{
"name":"DSC_0261.jpg",
"lastModified":1564648335292,
"size":65762,
"type":"image/jpeg",
"ext":"jpg",
"url": "https://safrazik.github.io/vue-file-agent/website/assets/files/DSC_0261.jpg"
},
// ...
]
},
// ...
};Example use case by @Garito: Reuse Previews #16
Metadata
Metadata
Assignees
Labels
No labels