Problem with getting filename for save to my database

Dear sir

how can i change the file name that i want to upload and then with my own name for file , i upload it to my server so i can save the path in my database

thanks for your help


Dear customer,


You can only change the file name on the server side, in the Upload Handler script. Please look into your server script (depending on the server side language it could be different, for example in PHP the variable name is $fileName). You can add a few lines of code in this script, to save the path in the database:



if(move_uploaded_file($tempLoc,$target_path))
{
$_SESSION[‘value’] = -1;
save_to_db($target_path);
}



function save_to_db($target_path)
{

}