How to get image url of uploaded image in python
I am getting the json response after uploading the image. I am using flask. I want to get the url of the image to save it to my database. How do i do that?
-
Hi Sagar,
The JSON response following a successful upload will contain the 'url' and 'secure_url' fields that will hold the HTTP and HTTPS versions of the URL to the uploaded asset respectively. You can grab the URL from those fields and store it as needed from your side. For an example JSON response upon a successful upload please see the following: https://cloudinary.com/documentation/image_upload_api_reference#sample_response
Let us know if that works for you.
Please sign in to leave a comment.
Comments
1 comment