Encrypted PDF file upload error
I keep getting this error for encrypted PDF file upload
{ message: 'Invalid PDF file', http_code: 400 }
Kindly HELP!!
-
Hi Michael,
When uploading encrypted or password-protected PDFs you would need to upload them specifically with ResourceType set to "Raw". By default, when uploading PDFs they will be assigned ResourceType "Image" as they can be manipulated using the same transformation as images. However, due to the password or encryption, Cloudinary cannot open and modify the file Uploading it as Raw will allow you to upload and delivery these PDFs, but you won't be able to manipulate password-protected PDFs.
Please try to upload the PDF as raw and let us know how it goes.
Best regards,
Aleksandar
0 -
Hello Aleksandar,
Thank you for coming to my aid. Setting the ResourceType to "raw" did fix the error. Thank You!!
0
Post is closed for comments.
Comments
2 comments