class Marten::HTTP::UploadedFile

Overview

Represents an uploaded file.

Defined in:

marten/http/uploaded_file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(part : ::HTTP::FormData::Part) #

[View source]

Instance Method Detail

def filename(*args, **options) #

Returns the uploaded file name.


[View source]
def filename(*args, **options, &) #

Returns the uploaded file name.


[View source]
def io : File #

Returns the File object associated with the corresponding temporary file.


[View source]
def size(*args, **options) #

Returns the uploaded file size.


[View source]
def size(*args, **options, &) #

Returns the uploaded file size.


[View source]