SilverStripe\Assets\Upload::loadIntoFile
Save an file passed from a form post into this object.
File names are filtered through , see class documentation on how to influence this behaviour.
Signature
public function loadIntoFile(array
$tmpFile,
[AssetContainer
$file = NULL,
[boolean
$folderPath = false]] )
Parameters
$tmpFile
— array$file
— object
$folderPath
— boolean
Returns
- bool
- True if the file was successfully saved into this record