Image Upload Using Pure Javascript - Not getting Secure URL and Public ID in response
Dear Cloudinary Team,
I am trying upload using pure JavaScript function which working perfectly fine and images are getting uploaded on my account but i am not getting proper response after successful image uploading.
Response What I am getting :
{
"status": "pending",
"resource_type": "image",
"type": "upload",
"public_id": "eki-business"
}
See Screenshot Below :
Postman

HTML + JAVASCRIPT

-
Hi Armash,
Thanks for reaching out.
Could you please try with POST and not with GET?
Please let me know if it works for you.
Thanks,
Yakir0 -
hey @Yakir perlin i also have the same issue and I have used post method but still the response status is pending..
0 -
Hi Ashwin,
The most likely reason you are seeing this is if you have the Async setting turned on in your upload preset within your account or have any other Asynchronous task configured, such as running the background removal add-on. Looking at the logs I can see that the initial upload requests were indeed async, but now your upload preset is configured to synchronous uploads so that should work for you, is that the case?
Best regards,
Aleksandar
0
Post is closed for comments.
Comments
3 comments