Skip to content

Support in-memory file via StringIO? #2

@hokster7

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?

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