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?
The README says:
Well ... I thought
StringIOsupportsreadso I would use that.But then:
Why
path?