i have four file upload controls..whenever i file is uploaded it is first of all checked in the directory whether that filename exists or not..if it exists,den i hav added a counter prefix to it,,,
_fullFileName = _outputPath + prefix + Path.GetFileName(_fileName);
int c = 1;
if(File.Exists(_fullFileName))
while (File.Exists(_fullFileName))
{
_fullFileName = _outputPath + prefix + c.ToString() + Path.GetFileName(_fileName);
c++;
}
_fs = new FileStream(_fullFileName, FileMode.Create);
when i upload zip files,,dere is also a function to unzip then,,now to unzip files i need to get the complete address,,,can someone tell me how can i get that...
currently i m using this function to get the address for unzipping
string MyFile = Path.Combine(Server.MapPath("~/uploads/"), userid) + "/" + Prefix + filename;
int c = 0;
if (File.Exists(MyFile))
while (File ...
Go to the complete details ...