SyuanYu 1 month ago
parent
commit
e0b556dbef
1 changed files with 3 additions and 0 deletions
  1. 3 0
      themes/hugo-bootstrap-5/layouts/free-pr-service/_index.html

+ 3 - 0
themes/hugo-bootstrap-5/layouts/free-pr-service/_index.html

@@ -545,6 +545,9 @@
       formData.append("text", newsText.value);
       formData.append("text", newsText.value);
       formData.append("title", headline.value);
       formData.append("title", headline.value);
       formData.append("contact_id", contactId.value);
       formData.append("contact_id", contactId.value);
+      if (listFile) {
+        formData.append("file", listFile);
+      }
       selectedOptions.forEach(opt => formData.append("options", opt));
       selectedOptions.forEach(opt => formData.append("options", opt));
 
 
       try {
       try {