Skip to content
Snippets Groups Projects

Issue #3512533: Clear fileInput to avoid large file upload failure.

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -420,6 +420,9 @@
fidInput.value = fids.join(' ');
const numberFileIds = fids.length;
// Clear file input so FormData won't include the file in the request.
fileInput.value = '';
// Post the results to Drupal if all files have been processed.
const formData = new FormData(form);
const button = form.querySelector(`.js-form-submit[name^=${fieldName}]`);
Loading