This commit is contained in:
Geometrically
2021-01-15 07:52:25 -07:00
parent 268cd131dc
commit 51e9527d53

View File

@@ -267,13 +267,11 @@ export default {
await this.$router.go(null) await this.$router.go(null)
this.$nuxt.$loading.finish() this.$nuxt.$loading.finish()
}, },
async addFiles(e) { async addFiles(files) {
this.filesToUpload = e.target.files this.filesToUpload = files
for (let i = 0; i < e.target.files.length; i++) { for (let i = 0; i < files.length; i++) {
this.filesToUpload[i].multipartName = e.target.files[i].name.concat( this.filesToUpload[i].multipartName = files[i].name.concat('-' + i)
'-' + i
)
} }
this.$nuxt.$loading.start() this.$nuxt.$loading.start()