d--j/em-ftpd — comment on commit 529081296d1344c7df1947760db59b5394ede6b8
File:  line 0
By d--j:

I like it better than my implementation. Makes it more obvious that the library user has two options to choose from.

Maybe one could have a wrapper object around the datasocket that can handle both cases. Have a to_s method that gets the whole upload in a string, a to_temp_file method that streams it to a temp file and an accessor to the raw datasocket for when the driver needs to do custom stuff.