401 error when attempting to view uploaded images.
Hi.
I'm simply uploading images through my react app to an unsigned upload endpoint and attempting to display the image that's returned by URL.
https://res.cloudinary.com/dadowgksf/image/upload/v1625112068/Nicholas_Sabadicci_Resume_qn4qln.pdf
When I attempt to visit or display an image from that URL I get a 401. This is also true with the non-secure link and with other image file types as well (not just pdf)
I'm new to Cloudinary and I'm not sure what I have to change to make this work. I'm guessing it's a simple security setting that I can't find. A point in the right direction would be greatly appreciated.
-
Hi Nicholas,
Reviewing the link you have attached, it has a whitespace appended at the end:
https://res.cloudinary.com/dadowgksf/image/upload/v1625112068/Nicholas_Sabadicci_Resume_qn4qln.pdf%20
You may access your file using this URL: https://res.cloudinary.com/dadowgksf/image/upload/v1625112068/Nicholas_Sabadicci_Resume_qn4qln.pdf
And as for the other assets from your application, I assume that there is an extra %20 at the end, as well, in every delivery URL on your web page.
Alternatively, you can also go to your Media Library and perform a right-click on the asset and click on the menu item 'Copy URL' and use the link to verify if the asset can be accessed in the browser.
Hope this helps.
Best regards,
Eric
0
Post is closed for comments.
Comments
1 comment