$api->upload()
Upload helper method
$api->upload(Closure $callback, bool $single = false, bool $debug = false): arrayParameters
| Name | Type | Default | 
|---|---|---|
| $callback * | Closure | – | 
| $single | bool | false | 
| $debug | bool | false | 
Return type
array
Exceptions
| Type | Description | 
|---|---|
| Exception | If request has no files or there was an error with the upload | 
Parent class
  Kirby\Cms\Api    inherited from Kirby\Api\Api