i have a problem changing my temp file to my refno?
can any one help me?
here is my code:
protected void AJAXUploader1_FileUploaded(object sender, EventArgs e)
{
foreach (EO.Web.AJAXPostedFile file in AJAXUploader1.PostedFiles)
{
//Get the temp file name
string tempFileName = file.TempFileName;
string refno = "";
if (!String.IsNullOrEmpty(Request.QueryString["refno"]))
{
refno = Request.QueryString["refno"].ToString();
}
//Create the final file name based on the original file name
string finalFileName = System.IO.Path.Combine("C:\\", refno);
//Move the file to the desired location
System.IO.File.Move(tempFileName, finalFileName);
}
}
i have no idea where to place the refno to rename the finalfilename