class Lucky::UploadedFile
- Lucky::UploadedFile
 - Reference
 - Object
 
Overview
This class represents an uploaded file from a form
Included Modules
- Avram::Uploadable
 
Defined in:
lucky/uploaded_file.crlucky_avram/ext/lucky/uploaded_file.cr
Constructors
- 
        .new(part : HTTP::FormData::Part)
        
          
Creates an UploadedFile using a HTTP::FormData::Part.
 
Instance Method Summary
- 
        #blank? : Bool
        
          
Tests if the file name is blank, which typically means no file was selected at the time the form was submitted.
 - #creation_time(*args, **options)
 - #creation_time(*args, **options, &)
 - 
        #filename : String
        
          
Returns the original name of the file
 - 
        #metadata : HTTP::FormData::FileMetadata
        
          
DEPRECATED
#metadatadeprecated. Each method on metadata is accessible directly on Lucky::UploadedFile - #modification_time(*args, **options)
 - #modification_time(*args, **options, &)
 - #name(*args, **options)
 - #name(*args, **options, &)
 - 
        #path : String
        
          
Returns the path of the File as a String
 - #read_time(*args, **options)
 - #read_time(*args, **options, &)
 - #size(*args, **options)
 - #size(*args, **options, &)
 - #tempfile : File
 
Constructor Detail
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
Instance Method Detail
Tests if the file name is blank, which typically means no file was selected at the time the form was submitted.
uploaded_file_object.blank? # => Bool
        Returns the original name of the file
uploaded_file_object.filename # => String
        DEPRECATED  #metadata deprecated. Each method on metadata is accessible directly on Lucky::UploadedFile
Returns the path of the File as a String
uploaded_file_object.path # => String