class
UploadService::UploadResult
- UploadService::UploadResult
- Reference
- Object
Overview
Result of uploading a file.
Defined in:
services/upload_service.crConstructors
Instance Method Summary
-
#add_error(field : String, message : String)
Adds an error.
- #errors : Hash(String, Array(String))
- #errors=(errors : Hash(String, Array(String)))
- #file_path : String | Nil
- #file_path=(file_path : String | Nil)
- #file_uri : String | Nil
- #file_uri=(file_uri : String | Nil)
-
#valid?
Returns
trueif upload was successful.
Constructor Detail
def self.new(file_uri : Nil | String = nil, file_path : Nil | String = nil, errors : Hash(String, Array(String)) = Hash(String, Array(String)).new)
#