method
new
v3.0.9 -
Show latest stable
- Class:
ActionDispatch::Http::UploadedFile
new(hash)public
No documentation available.
# File actionpack/lib/action_dispatch/http/upload.rb, line 6
def initialize(hash)
@original_filename = hash[:filename]
@content_type = hash[:type]
@headers = hash[:head]
@tempfile = hash[:tempfile]
raise(ArgumentError, ':tempfile is required') unless @tempfile
end