Class Web::Upload
In: lib/web/request.rb
Parent: SimpleDelegator

Purpose

This class delegates to the uploaded Tempfile, and adds content type and original filename attributes.

If you are testing a multipart/form, use this class to pretend you uploaded a file:

    test_params = { "uploaded_file" => Upload.new( aFile,
                                                   "image/png",
                                                   "my_favorite_image.png" ) }
Methods
new   
Attributes
content_type  [R] 
original_filename  [R] 
Public Class methods
new( file, content_type, original_filename )