class UploadedFile
Ruby on Rails 4.0.13
Since v3.0.20Models uploaded files.
The actual file is accessible via the tempfile accessor, though some of its interface is available directly for convenience.
Uploaded files are temporary files whose lifespan is one request. When the object is finalized Ruby unlinks the file, so there is no need to clean them with a separate maintenance task.
Inherits from
Attributes
Methods (defined here)
Private methods
(1)
Implementation detail — not part of the public API.
Methods (inherited)
From Object (20)
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # present?
- # to_json
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix