From 4634477179d3fb523782b2e630c6b674a2648503 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Wed, 12 Feb 2020 13:36:51 -0500 Subject: [PATCH] Enable reuploading files after an error --- js/components/upload_input.js | 2 +- templates/components/upload_input.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/components/upload_input.js b/js/components/upload_input.js index 4f9f06fc..8bf806e9 100644 --- a/js/components/upload_input.js +++ b/js/components/upload_input.js @@ -72,7 +72,7 @@ export default { const uploader = await this.getUploader() const response = await uploader.upload(file) if (uploadResponseOkay(response)) { - this.attachment = e.target.value + this.attachment = file.name this.objectName = uploader.objectName this.$refs.attachmentFilename.value = file.name this.$refs.attachmentObjectName.value = response.objectName diff --git a/templates/components/upload_input.html b/templates/components/upload_input.html index bd4cd73c..b4292284 100644 --- a/templates/components/upload_input.html +++ b/templates/components/upload_input.html @@ -43,7 +43,6 @@ :id="name" :name="name" aria-label="Task Order Upload" - v-bind:value="attachment" type="file">