Skip to content

RuntimeError: Invalid value ... for parameter image_file_type #17

Description

@vlado

I'm using latest version of your gem (1.0.22), and when I try to upload image without extension

Cloudinary::Uploader.upload("http://t1.gstatic.com/images?q=tbn:ANd9GcTzXvEKaysQX3ckspMRPcUtxAxFdx0fsqwCc8s4demIyILmrNqnZA")

i get RuntimeError

RuntimeError: Invalid value com/images for parameter image_file_type

I tried with adding format option and it worked

Cloudinary::Uploader.upload("http://t1.gstatic.com/images?q=tbn:ANd9GcTzXvEKaysQX3ckspMRPcUtxAxFdx0fsqwCc8s4demIyILmrNqnZA", format: "jpg")

But then I can't add named transformation as an option (it is ignored).

Cloudinary::Uploader.upload("http://t1.gstatic.com/images?q=tbn:ANd9GcTzXvEKaysQX3ckspMRPcUtxAxFdx0fsqwCc8s4demIyILmrNqnZA", format: "jpg", transformation: "avatar")

Transformation option when uploading image with extension works fine

Cloudinary::Uploader.upload("http://hirenj.files.wordpress.com/2012/02/nate.jpg", transformation: "avatar")

This one also ignores transformation option

Cloudinary::Uploader.upload("http://hirenj.files.wordpress.com/2012/02/nate.jpg", transformation: "avatar", format: "jpg")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions