Hi,
I have tried to upload a file using this CUploadedFile.
I have tried upload to a local server and it success.
But the problem is i want to keep the uploaded file to another server.
I have tried using the map network drive but still the file not save in other server.
This is example
$DocumentDirectory = ‘Z:\Candidate’;
$cv_path = CUploadedFile::getInstance($model,‘cv_path’);
if($cv_path->name){
$cv_name = ‘cv_’ . $POST[‘Tblhrcandidate’][‘ICPassportNo’] . '’ . $cv_path->name;
$cv_ext = pathinfo($cv_name,PATHINFO_EXTENSION);
$cv_pathUrl = $DocumentDirectory.’\\’.$cv_name;
$cv_pathUrlSave = $cv_name;
$cv_path->saveAs($cv_pathUrl);
}