Methods
N
R
Attributes
[RW] original_filename
[RW] content_type
[RW] tempfile
[RW] headers
Class Public methods
new(hash)
    # File actionpack/lib/action_dispatch/http/upload.rb, line 6
 6:       def initialize(hash)
 7:         @original_filename = encode_filename(hash[:filename])
 8:         @content_type      = hash[:type]
 9:         @headers           = hash[:head]
10:         @tempfile          = hash[:tempfile]
11:         raise(ArgumentError, ':tempfile is required') unless @tempfile
12:       end
Instance Public methods
read(*args)
    # File actionpack/lib/action_dispatch/http/upload.rb, line 14
14:       def read(*args)
15:         @tempfile.read(*args)
16:       end