Note that this method uses php's move_uploaded_file() method. If the target file $file
already exists, it will be overwritten.
public saveAs ( string $file, boolean $deleteTempFile = true ) : boolean | ||
$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 |