SilverStripe\Assets\Upload::load
Save an file passed from a form post into the AssetStore directly
Signature
public function load(array
$tmpFile,
[boolean
$folderPath = false] )
Parameters
$tmpFile
— array- Indexed array that PHP generated for every file it uploads.
$folderPath
— boolean- Folder path relative to /assets
Returns
- array|false
- Either the tuple array, or false if the file could not be saved