How to get pdf URL from Cloudinary
0
Hello !
I have a Report model, and it has: has_one_attached :photo
I have a Report model, and it has: has_one_attached :photo
The file is a PDF. I want to have access to the URL to display the PDF :
<%= link_to "link text...", cl_image_path(@report.photo.key, format: :pdf ) %>
but it gives me a url with the key.pdf which is not the same as the pdf 's cloudinary URL. Do you know why ?
0
-
Hi,
I see you opened a direct ticket to our support with all the details. So we will continue the communication on that thread.
Thanks
0
Post is closed for comments.
Comments
1 comment