mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-01-19 00:07:17 +01:00
Don't remove files from file input, just append
This commit is contained in:
parent
9a6afdd921
commit
678ef85da1
@ -75,7 +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
|
// Append decrypted files to formData
|
||||||
decryptedFiles.forEach((file, index) => {
|
decryptedFiles.forEach((file, index) => {
|
||||||
formData.append(`fileInput`, file);
|
formData.append(`fileInput`, file);
|
||||||
|
Loading…
Reference in New Issue
Block a user