0👍
I figured it out:
<template>
<uploader :options="options" @file-success="mySuccessfullyUploadedFiles.push($event)">
<uploader-unsupport></uploader-unsupport>
<uploader-drop>
<uploader-btn>Select files to upload...</uploader-btn>
</uploader-drop>
<uploader-list></uploader-list>
</uploader>
<pre>{{mySuccessfullyUploadedFiles}}</pre>
</template>
<script>
export default {
data () {
return {
mySuccessfullyUploadedFiles: [],
options: {
// https://github.com/simple-uploader/Uploader/tree/develop/samples/Node.js
target: '//localhost:3000/upload',
testChunks: false
},
attrs: {
accept: 'image/*'
}
}
}
}
</script>
Source:stackexchange.com