mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2024-12-31 00:08:08 +01:00
Fix form data files being replaced by the last decrypted file
This commit is contained in:
parent
64ee26facf
commit
4998ad064a
@ -75,9 +75,10 @@
|
||||
// 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.set(`fileInput`, file);
|
||||
formData.append(`fileInput`, file);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user