From e052f90b31f061300bacca6e5b54e504106af30d Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 21 Jan 2025 11:48:55 -0600 Subject: Pass both original name and uploaded name onward for processing. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'uploader/templates/phenotypes/add-phenotypes-raw-files.html') diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index b720792..d9a8424 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -568,7 +568,10 @@ var formdata = new FormData(form); uploaded_files.forEach((msg) => { formdata.delete(msg["file-input-name"]); - formdata.append(msg["file-input-name"], msg["uploaded-file"]); + formdata.append(msg["file-input-name"], JSON.stringify({ + "uploaded-file": msg["uploaded-file"], + "original-name": msg["original-name"] + })); }); formdata.append("resumable-upload", "true"); return formdata; -- cgit v1.2.3