class

Lucky::UploadedFile

Inherits Reference < Object

This class represents an uploaded file from a form

Constructors

Creates an UploadedFile using a HTTP::FormData::Part.

The new file will be assigned the name of the provided HTTP::FormData::Part and the tempfile will be assigned the body of the HTTP::FormData::Part

Source

Instance methods

blank?

Tests if the file size is zero.

uploaded_file_object.blank? # => Bool
Source
creation_time(*args, **options)
Source
creation_time(*args, **options, &)
Source
filename
Source
metadata

Avram::Uploadable needs to be updated when this is removed

Source
modification_time(*args, **options)
Source
modification_time(*args, **options, &)
Source
name(*args, **options)
Source
name(*args, **options, &)
Source
path

Returns the path of the File as a String

uploaded_file_object.path # => String
Source
read_time(*args, **options)
Source
read_time(*args, **options, &)
Source
size(*args, **options)
Source
size(*args, **options, &)
Source
tempfile
Source