This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

upload raises exception in Sinatra app

Comments

2 comments

  • Avatar
    Ian Burry

    Ok, I figured it out. The hint's in the exception, even if it was a bit confusing at first.  The upload() method wants a file object or a string file path, not a hash, indifferent or otherwise. So, using file['tempfile'], or file['tempfile'].path does the trick. I guess it's the difference between a regular form submit, and an ajax request like I'm using here.

    0
    Comment actions Permalink
  • Avatar
    Ido

    Hi, Ian.

    Glad to hear it's working :)

    Please let us know if you need anything else.

    Regards,
    Ido

    0
    Comment actions Permalink

Post is closed for comments.