Merge pull request #2497 from reecebrowne/File-input-append

Remove file input append
This commit is contained in:
Anthony Stirling 2024-12-18 12:18:02 +00:00 committed by GitHub
commit 1862ab1671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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