lib/vimeo/advanced/simple_upload.rb in slainer68_vimeo-1.4.3 vs lib/vimeo/advanced/simple_upload.rb in slainer68_vimeo-1.4.4
- old
+ new
@@ -7,10 +7,10 @@
autoload :Chunk, 'vimeo/advanced/simple_upload/chunk'
# Uploads data (IO streams or files) to Vimeo.
def upload(uploadable)
case uploadable
- when File
+ when File, Tempfile
upload_file(uploadable)
when String
upload_file(File.new(uploadable))
else
upload_io(uploadable)
\ No newline at end of file