SilverStripe\Assets\Upload::getValidFilename
Given a temporary file and upload path, validate the file and determine the value of the 'Filename' tuple that should be used to store this asset.
Signature
protected function getValidFilename(array
$tmpFile,
[string
$folderPath = NULL] )
Parameters
$tmpFile
— array$folderPath
— string
Returns
- string|false
- Value of filename tuple, or false if invalid