diff options
author | Frederick Muriuki Muriithi | 2025-01-21 11:48:55 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-01-21 11:48:55 -0600 |
commit | e052f90b31f061300bacca6e5b54e504106af30d (patch) | |
tree | 90e59e7426c449ab06b52329274dc5a4afadb919 /uploader | |
parent | 959f90e1490847165f2185b373799c2cbd772d1f (diff) | |
download | gn-uploader-e052f90b31f061300bacca6e5b54e504106af30d.tar.gz |
Pass both original name and uploaded name onward for processing.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-raw-files.html | 5 |
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; |