diff --git a/src/admin/components/edition/collection-edition-form.vue b/src/admin/components/edition/collection-edition-form.vue index 23ff992a6..542a12e22 100644 --- a/src/admin/components/edition/collection-edition-form.vue +++ b/src/admin/components/edition/collection-edition-form.vue @@ -2,7 +2,8 @@
- +
- {{ importerFile[0].name }} + {{ (importerFile.length != undefined && importerFile.length > 0 ) ? importerFile[0].name : importerFile.name }} @@ -255,7 +255,7 @@ export default { }, onUploadFile() { return new Promise((resolve, reject) => { - this.updateImporterFile({ sessionId: this.sessionId, file: this.importerFile[0] }) + this.updateImporterFile({ sessionId: this.sessionId, file: (this.importerFile.length != undefined && this.importerFile.length > 0) ? this.importerFile[0] : this.importerFile}) .then(updatedImporter => { this.importer = updatedImporter; resolve();