module ActionDispatch::Http::Upload
def normalize_encode_params(value)
Replace file upload hash with UploadedFile objects
:nodoc:
def normalize_encode_params(value) if Hash === value && value.has_key?(:tempfile) UploadedFile.new(value) else super end end