mqcarpenter
09-21-2004, 04:12 PM
I am not sure this is a good spot for this, but I will take a shot. I have an ASPX web app that allows users to upload a file to my server securely. I get an email alert when this is done. I go in and delete the file after copying it to another offline server. Whenever a file is uploaded, ALL previous files reappear with a new modified date. I can not figure out why. There is no temp folder used to buffer the uploads, and shadow service is not on. Here is the upload code:
foreach(System.Web.UI.HtmlControls.HtmlInputFile HIF in HIFList)
{
fileName = System.IO.Path.GetFileName(HIF.PostedFile.FileName);
HIF.PostedFile.SaveAs(baseLocation + fileName);
filesUploaded++;
}
Windows 2000 SP4
foreach(System.Web.UI.HtmlControls.HtmlInputFile HIF in HIFList)
{
fileName = System.IO.Path.GetFileName(HIF.PostedFile.FileName);
HIF.PostedFile.SaveAs(baseLocation + fileName);
filesUploaded++;
}
Windows 2000 SP4