Skip to content

Kirby 5.1.3

Upload::error()

Throws an exception with the appropriate translated error message

Upload::error() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

Upload::error(int $error): void

Parameters

Name Type Default
$errorrequired int no default value

Exceptions

Type Description
Exception Any upload error

Parent class

Kirby\Api\Upload