Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot access pdf using public url uploaded on cloudinary

I am trying to access pdf using public url uploaded on cloudinary however url request has been successfully completed but nothing showed.

Permission : Blocked for delivery shows in properties of pdf on cloudinary

like image 532
Mohsin Zahid Avatar asked Sep 16 '25 02:09

Mohsin Zahid


2 Answers

If you are on a free plan and need to deliver files in these formats, you can navigate to the Security tab of Settings in the Management Console and select to 'Allow delivery of PDF and ZIP files' or find it at the bottom.

like image 158
Chance Desire IRADUKUNDA Avatar answered Sep 19 '25 13:09

Chance Desire IRADUKUNDA


Based on a recent update to our security policies, we've restricted delivery on newly created Free accounts for PDFs and Archive files. Such files can still be uploaded, but the restriction is specifically on delivery.

For PDFs that are uploaded with resource_type - "image", as they support transformations, they can be converted to images and will be delivered - e.g. by using the page transformation (pg_ in URLs) and setting the extension to jpg. -

in javascript we just need to replace extension to .jpg

 response?.data?.url.replace(".pdf", ".jpg")

source

like image 20
Mohsin Zahid Avatar answered Sep 19 '25 14:09

Mohsin Zahid