Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
mongosoft
file
UploadBehavior
save
mongosoft\file\UploadBehavior::save PHP Method
UploadBehavior Class Documentation
Show file
Open project: mongosoft/yii2-upload-behavior
save()
protected
method
Saves the uploaded file.
protected
save
(
UploadedFile
$file
,
string
$path
) :
boolean
$file
yii\web\UploadedFile
the uploaded file instance
$path
string
the file path used to save the uploaded file
return
boolean
true whether the file is saved successfully
protected function save($file, $path) { return $file->saveAs($path, $this->deleteTempFile); }
UploadBehavior
afterDelete
afterSave
afterUpload
beforeSave
beforeValidate
delete
events
generateFileName
getFileName
getUploadPath
getUploadUrl
init
resolvePath
sanitize
save