0.0
No commit activity in last 3 years
No release in over 3 years
Useful for file attachment (paperclip, attachment_fu, etc) outside your standard web frameworks
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.11.3

Runtime

>= 1.16
 Project Readme

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 © 2010 Nick Zalabak. See LICENSE for details.