class Lucky::UploadedFile
- Lucky::UploadedFile
- Reference
- Object
Overview
This class represents an uploaded file from a form
Defined in:
lucky/uploaded_file.crConstructors
-
.new(part : HTTP::FormData::Part)
Creates an UploadedFile using a HTTP::FormData::Part.
Instance Method Summary
- #metadata : HTTP::FormData::FileMetadata
- #name : String
-
#path : String
Returns the path of the File as a String
- #tempfile : File
Constructor Detail
def self.new(part : HTTP::FormData::Part)
#
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
Returns the path of the File as a String
uploaded_file_object.path # => String