mirror of
				https://github.com/Frooodle/Stirling-PDF.git
				synced 2025-10-25 11:17:28 +02: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