It looks like you're new here. If you want to get involved, click one of these buttons!
$dsPath = substr( getcwd(),0,strlen(getcwd())-( strlen($dsCONF['DIR']['ADMN'])+1 ) ) . '/'. $dsCONF['DIR']['PIC'] . '/';
$dsImgName = $ds->dsAdmin->dsUpload('Filedata',$dsPath,FALSE); // uploading the file then returning the generated name
If (!$dsUpErr && $dsImgName<>'None') { // if the image has been uploaded, store its name in the session
$_SESSION['dsImgL'] = $dsImgName;
}