Don't remove files from file input, just append

This commit is contained in:
Reece Browne 2024-12-18 11:09:52 +00:00
parent 9a6afdd921
commit 678ef85da1

View File

@ -75,7 +75,6 @@
// Check if any PDF files are encrypted and handle decryption if necessary
const decryptedFiles = await checkAndDecryptFiles(url, files);
files = decryptedFiles;
formData.delete('fileInput'); // Reset fileInput and Append
// Append decrypted files to formData
decryptedFiles.forEach((file, index) => {
formData.append(`fileInput`, file);