class Runcobo::UploadFile

Overview

Request-owned temporary file. Persist with save before the action returns.

Defined in:

runcobo/upload_file.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(filename : String, content_type : String, size : Int64, file : File) #

[View source]

Instance Method Detail

def cleanup : Nil #

Used by the request lifecycle, including failed parsing and early returns.


[View source]
def content_type : String #

[View source]
def file : File #

[View source]
def filename : String #

[View source]
def save(path : String) : Nil #

[View source]
def size : Int64 #

[View source]