From c3e3c4af9666006558aaf26d8f4841800e69f9af Mon Sep 17 00:00:00 2001 From: Sebastian Schenk Date: Tue, 29 Jun 2021 20:00:01 +0200 Subject: [PATCH] Fix missing attribut in xhr request for dnd --- scripts/dnd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dnd.js b/scripts/dnd.js index f3f9a976..a9c18876 100644 --- a/scripts/dnd.js +++ b/scripts/dnd.js @@ -121,6 +121,8 @@ function upload(files) { formData.append('cmd', "Upload"); // Command for server to recognize this as an file upload + formData.append('Author', $("input[name^='Author']").attr('value')); // Other attributes missing should be fine, but author is needed + if (!!window.FormData) { var URL = 'upload.html?next_attachment=' + parent.next_attachment;