diff --git a/src/main/resources/static/js/downloader.js b/src/main/resources/static/js/downloader.js index 57ae8c47..752d459b 100644 --- a/src/main/resources/static/js/downloader.js +++ b/src/main/resources/static/js/downloader.js @@ -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); }); }