$upload->source()
Move the tmp file to a location including the extension, for better mime detection and return updated source path
$upload->source() 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->source(string $source, string $filename): string
Parameters
| Name | Type | Default |
|---|---|---|
| $sourcerequired | string |
no default value |
| $filenamerequired | string |
no default value |
Return type
string
This method modifies the existing $upload object it is applied to and returns it again.