new(hash) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/upload.rb, line 26
      def initialize(hash) # :nodoc:
        @tempfile          = hash[:tempfile]
        raise(ArgumentError, ':tempfile is required') unless @tempfile

        @original_filename = hash[:filename]
        @original_filename &&= @original_filename.encode "UTF-8"
        @content_type      = hash[:type]
        @headers           = hash[:head]
      end
Register or log in to add new notes.