SilverStripe\Assets\Upload::resolveExistingFile
Given a file and filename, ensure that file renaming / replacing rules are satisfied
If replacing, this method may replace $this->file with an existing record to overwrite. If renaming, a new value for $filename may be returned
Signature
protected function resolveExistingFile(string
$filename )
Parameters
$filename
— string
Returns
- string
- $filename A filename safe to write to