Upload::response()
Convert uploads and errors in response array for API response
Upload::response() 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::response(array $uploads, array $errors): array
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $uploadsrequired | array<array-key, mixed> |
no default value | Callback results by filename |
| $errorsrequired | array<array-key, string> |
no default value | Error messages by filename |
Return type
array<string, mixed>