web\UploadedFile saveAs()

saveAs() public method

Saves the uploaded file.

Note that this method uses php's move_uploaded_file() method. If the target file $file already exists, it will be overwritten.

See also $error.

public boolean saveAs ( $file, $deleteTempFile = true )
$file string

The file path used to save the uploaded file

$deleteTempFile boolean

Whether to delete the temporary file after saving. If true, you will not be able to save the uploaded file again in the current request.

return boolean

True whether the file is saved successfully

doc_Yii
2016-10-30 17:16:54
Comments
Leave a Comment

Please login to continue.