Fog streaming upload #468

merged 4 commits into from Sep 23, 2011


None yet
2 participants

chrisdurtschi commented Sep 23, 2011

This version fixes compatibility with Ruby 1.8.7, and has been rebased onto the latest master.

chrisdurtschi added some commits Sep 19, 2011

Add support for fog streaming uploads
Fog supports streaming uploads if passed a File object.
Added SanitizedFile#to_file method that returns a File object.
This works for file system based SanitizedFile (File, Tempfile, Hash, etc)
StringIO must still be read into memory before being passed to fog.
Use #to_file if not nil, otherwise use #read
Shouldn't rely on #exists? here, since #to_file implementation might
Create File from #path
Fixes compatibility with Ruby 1.8.7

bensie commented Sep 23, 2011

Looks good, merging. Thanks!

bensie added a commit that referenced this pull request Sep 23, 2011

@bensie bensie merged commit ba8b9d4 into carrierwaveuploader:master Sep 23, 2011

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