我正在使用 asp.net 中的文件上传控件来上传文件,我能够成功地将文件上传到服务器上。现在的问题是,如果我重新加载页面,文件会再次上传到服务器上。上传文件后如何清除文件上传控制?如果需要代码,那么我将其粘贴。
//=========== Uploaded file format ============================
string filename = System.IO.Path.GetFileName(imageUploader.FileName);
//============== Upload the file ==============================
imageUploader.SaveAs(MapPath("~/articleimage/")+filename);
//-------------------- Msg ----------------------------------
showMessage("Image Uploaded Successfully");