Methods
N
O
P
R
S
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
def initialize(hash)
  @original_filename = encode_filename(hash[:filename])
  @content_type      = hash[:type]
  @headers           = hash[:head]
  @tempfile          = hash[:tempfile]
  raise(ArgumentError, ':tempfile is required') unless @tempfile
end
Instance Public methods
open()
# File actionpack/lib/action_dispatch/http/upload.rb, line 14
def open
  @tempfile.open
end
path()
# File actionpack/lib/action_dispatch/http/upload.rb, line 18
def path
  @tempfile.path
end
read(*args)
# File actionpack/lib/action_dispatch/http/upload.rb, line 22
def read(*args)
  @tempfile.read(*args)
end
rewind()
# File actionpack/lib/action_dispatch/http/upload.rb, line 26
def rewind
  @tempfile.rewind
end
size()
# File actionpack/lib/action_dispatch/http/upload.rb, line 30
def size
  @tempfile.size
end