Private uploading is not correct working
Hi.
I'm considering whether to use Cloudinary for our products.
Our Products need private image uploading method.
I read this article: https://cloudinary.com/blog/how_to_quickly_build_a_stock_photo_site_using_cloudinary .
I tried bellow.
auth = {
cloud_name: 'cloud_name',
api_key: 'api_key',
api_secret: 'api_secret'
}
Cloudinary::Uploader.upload("sample_for_cloudinary.png", :type => :private, **auth)
=> {"public_id"=>"PUBLIC_ID",
"version"=>VERSION,
"signature"=>"SIGNATURE",
"width"=>128,
"height"=>128,
"format"=>"png",
"resource_type"=>"image",
"created_at"=>"2019-06-04T03:03:44Z",
"tags"=>[],
"bytes"=>6072,
"type"=>"private",
"etag"=>"ETAG",
"placeholder"=>false,
"url"=>"http://res.cloudinary.com/CLOUD_NAME/image/private/*********/v*********/*********.png",
"secure_url"=>"https://res.cloudinary.com/CLOUD_NAME/image/private/*********/v*********/*********.png",
"original_filename"=>"sample_for_cloudinary"}
My sample image uploaded to cloudinary as private image correctly.

But I can access to url and secure_url from anywhere.
How to upload private image correctly?
0
-
Hi Hiroki,
Can you please open a ticket at support@cloudinary.com with the URL and public_id you're using? This way we can further investigate the specific resource.
0
Post is closed for comments.
Comments
1 comment