Skip to content

Support in-memory file via StringIO? #2

Description

@hokster7

The README says:

If you want to upload a file directly to Cloud Convert, pass the file object to the file argument. Make sure that the file object you are passing responds to the read method. Examples: File, Tempfile, ActionDispatch::Http::UploadedFile, etc.

Well ... I thought StringIO supports read so I would use that.

But then:

~/.rvm/gems/ruby-2.2.4/gems/httmultiparty-0.3.16/lib/httmultiparty.rb:16:in `file_to_upload_io': undefined method `path' for #<StringIO:0x007fe726b27900> (NoMethodError)

Why path?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions