Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader Options
ritesh
Posted: Wednesday, February 9, 2011 2:55:41 AM
Rank: Newbie
Groups: Member

Joined: 2/7/2011
Posts: 5
Code: C#


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
eo_support
Posted: Wednesday, February 9, 2011 7:30:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for posting in the forum, unfortunately our support will not answer this question. As a general rule, our support only supports questions that are directly related to our product. In your case, we can tell you how to get the temp file name, what you do with that file name (for example, you can simply delete it, or move it, or store it into database) is totally up to you and has nothing to do with our product. Your "refno" info is your own implementation.

The basic principle at here is, we support our product but we do not code for you. Below are a few things that we will not do:

1. We will not help you to implement your own business logic;
2. We will not explain or help you understand basic .NET/ASP.NET/Web programming concept;
3. We will not troubleshoot or debug your code;

You can also review our support policy here:

http://www.essentialobjects.com/forum/postst1368_Product-support.aspx

Note this only affect whether we will answer your question or not (We will not explain our policy to you every time, so in the future we may just ingore such questions). Other user may still answer your questions.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.