class Rage::UploadedFile
Rage will automatically unlink the files, so there is no need to clean them with a separate maintenance task.
of its interface is available directly for convenience.
The actual file is accessible via the ‘file` accessor, though some
Models uploaded files.
#
def close(unlink_now = false)
def close(unlink_now = false) @file.close(unlink_now) end
def eof?
def eof? @file.eof? end
def initialize(file, original_filename, content_type)
def initialize(file, original_filename, content_type) @file = file @original_filename = original_filename @content_type = content_type end
def open
def open @file.open end
def path
def path @file.path end
def read(length = nil, buffer = nil)
def read(length = nil, buffer = nil) @file.read(length, buffer) end
def rewind
def rewind @file.rewind end
def size
def size @file.size end
def to_io
def to_io @file.to_io end
def to_path
def to_path @file.to_path end