You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
fatuhoku
changed the title
How to upload In-memory file?
Support in-memory file via StringIO?
Jul 28, 2016
The README says:
Well ... I thought
StringIO
supportsread
so I would use that.But then:
Why
path
?The text was updated successfully, but these errors were encountered: