class

UploadService::UploadResult

Inherits Reference < Object

Result of uploading a file.

Constructors

new(file_uri : Nil | String = nil, file_path : Nil | String = nil, errors : Hash(String, Array(String)) = Hash(String, Array(String)).new)
Source

Instance methods

add_error(field : String, message : String)

Adds an error.

Source
errors
Source
errors=(errors : Hash(String, Array(String)))
Source
file_path
Source
file_path=(file_path : String | Nil)
Source
file_uri
Source
file_uri=(file_uri : String | Nil)
Source
valid?

Returns true if upload was successful.

Source