aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
Diffstat (limited to 'uploader')
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 1af3dd0..8de67a0 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -564,14 +564,20 @@
};
};
+ var uploaded_files = new Set();
+ var submitForm = (new_file) => {
+ uploaded_files.add(new_file);
+ if(uploaded_files.size === resumables.length) {
+ //TODO: build up the new form from existing form and uploaded files
+ //TODO: submit the form to appropriate endpoint
+ }
+ };
var uploadSuccess = () => {
return (file, message) => {
console.log("THE FILE:", file);
console.log("THE SUCCESS MESSAGE:", message);
- // TODOS:
- // * Save filename/filepath somewhere
- // * Trigger some function that will run when all files have succeeded
+ submitForm(file.file.name);
};
};