diff --git a/src/views/feature/Feature_detail.vue b/src/views/feature/Feature_detail.vue
index a56f8b3841b1a3713b32138ce2a23d8c768e9027..20f43ffaae472d5ab1cad781ad61205b458847c7 100644
--- a/src/views/feature/Feature_detail.vue
+++ b/src/views/feature/Feature_detail.vue
@@ -464,10 +464,10 @@ export default {
       //console.log("POST comment", data);
     },
     getAttachmentFileData(evt) {
-      const input = evt.target.value;
-      const period = input.lastIndexOf(".");
-      const fileName = input.substring(0, period);
-      const fileExtension = input.substring(period + 1);
+      const files = evt.target.files || evt.dataTransfer.files;
+      const period = files[0].name.lastIndexOf(".");
+      const fileName = files[0].name.substring(0, period)
+      const fileExtension = files[0].name.substring(period + 1);
       const shortName = fileName.slice(0, 10) + "[...]." + fileExtension;
       this.comment_form.attachment_file.value = shortName;
       this.comment_form.title.value = shortName;