Skip to content

Commit

Permalink
Merge pull request #107 from UST-QuAntiL/fix/file-parameters
Browse files Browse the repository at this point in the history
fix: form-submit filename instead of file object
  • Loading branch information
infacc authored Oct 11, 2023
2 parents 92f2911 + fbf0277 commit 5e9a363
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions qhana_plugin_runner/static/microfrontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ function onFormSubmit(event, dataInputs, privateInputs) {
processedFormData.append(key, '***');
return;
}
if (entry instanceof File) {
// add filename instead of file object
processedFormData.append(key, `Uploaded file: ${entry.name}`);
return;
}
// add all other values unchanged
processedFormData.append(key, entry);
// add data inputs to extra list
Expand Down

0 comments on commit 5e9a363

Please sign in to comment.