Closed BenLorantfy closed 6 years ago
@RexMorgan what do you think of this PR?
Hi Ben, I like this change and I'll try to test this and get it merged and published to npm soon.
I'm very sorry for the long delay, I know lack of response can be frustrating with open source projects. I saw this when you originally sent it and I forgot to set aside time to look into it more closely. Thanks for bringing it back to my attention.
@BenLorantfy This has been merged and published to npm, uploadcare version 0.4.4.
Thanks!
The
/status
endpoint returns success when the image is done uploading but that doesn't necessarily mean it's ready to be downloaded/accessed. Theis_ready
flag means it's ready to download. Added an option that if true tells thefromUrl
function to wait until the image is ready before calling the callback function.See the example response here: https://uploadcare.com/documentation/upload/#from-url