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">