Home > uploadable_file

uploadable_file

Uploadable_file is a project mainly written in Ruby, based on the MIT license.

A wrapper class around File that make them acts as a multipart uploaded file

= uploadable_file

UploadableFile is a simple wrapper around Tempfile that adds original_filename and content_type as attributes. It essentially acts as a multipart file would if uploaded in a form. The idea was borrowed from ActionPack::TestUploadedFile, but I wanted something more lightweight that doesn't have the baggage of activesupport. Other viable alternatives to this would be to use Rack's Multipart::UploadedFile, but again you'd need the entire Rack gem and isn't available in version ~> 1.0.x.

== Copyright

Copyright (c) 2010 Nick Zalabak. See LICENSE for details.

Previous:Ghost