aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes/add-phenotypes-raw-files.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-01-21 11:48:55 -0600
committerFrederick Muriuki Muriithi2025-01-21 11:48:55 -0600
commite052f90b31f061300bacca6e5b54e504106af30d (patch)
tree90e59e7426c449ab06b52329274dc5a4afadb919 /uploader/templates/phenotypes/add-phenotypes-raw-files.html
parent959f90e1490847165f2185b373799c2cbd772d1f (diff)
downloadgn-uploader-e052f90b31f061300bacca6e5b54e504106af30d.tar.gz
Pass both original name and uploaded name onward for processing.
Diffstat (limited to 'uploader/templates/phenotypes/add-phenotypes-raw-files.html')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html5
1 files changed, 4 insertions, 1 deletions
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;