doesn't get url or secure_url in response
hello
I'm new here.
I have created a small js app that can upload images. it works. but in my response object i get back when the image is uploaded I don't get the data where i'm supposed to find the url and "secure_url" to the uploaded image?...
You can see in the img what I get in the response
and here is my fetch function
could anyone help me wit this issue?

-
Hi Daniel,
I see that you've raised this question here as well as directly to us via a Zendesk ticket where it was resolved. I'll go ahead and share the details in this post as well in case any other user runs into such a scenario.
The solution was to parse the response body as JSON and then access the relevant response field (url / secure_url in this case). For example -
.then(response => response.json())
.then(data => {
console.log(data);
})1
Post is closed for comments.
Comments
1 comment