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): never
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $errorrequired | int |
no default value | One of the UPLOAD_ERR_* constants |
Return type
never
Exceptions
| Type | Description |
|---|---|
Exception |
Any upload error |