Upload API is not working as expected

Comments

4 comments

  • Avatar
    Danny Valentine

    Hey.

    I'm Danny from the Developer Support team.

    I've taken a look at your account and I see your upload preset specifies "Async: true". In order to use this, you'll need to specify a notification_url as an optional parameter when invoking the upload method, or specify a fallback notification URL in your upload settings. Alternatively you can turn off Async in your upload preset, but if there are any large transformations that need to be done at the time of upload, it could cause the upload to time out and/or fail.

    If you have any further issues or need help getting this set up, please let us know either by replying to this thread, or opening up a ticket with us.

    Many thanks,
    -Danny

    0
    Comment actions Permalink
  • Avatar
    Marco Hiltbrunner

    Hello i have a question about the output. I get the same output parameters as in the example above.

    I also need the height and width to calculate the ratio. With the upload-api it should be possible?

    thanks for help

     

     

    0
    Comment actions Permalink
  • Avatar
    Eric Pasos

    Hi Marco,

    The response that you are getting (i.e., as shown above) indicates that you have set the Eager Async: True in your upload preset or you have set the Upload API parameter eager_async: true. Enabling this parameter, the data you require will be posted through the notification_url once the transformation processing is completed for that particular upload.

    In order to get the response JSON complete result synchronously, you can use Upload API without using the eager transformation (i.e., for the allowable asset size based on your account's limit).

    Hope this helps. Thanks.

    0
    Comment actions Permalink
  • Avatar
    Marco Hiltbrunner

    Hi Eric

    Thanks for your detailed information! 

    Now everything is clear

     

    0
    Comment actions Permalink

Please sign in to leave a comment.