I have the following Method that gets the posted files.
What is the best approach to calculate the MD5
hash and where ?
public void ProcessRequest(HttpContext context)
{
if (context.Request.Files.Count > 0)
{
HttpFileCollection files = context.Request.Files;
for (int i = 0; i < files.Count; i++)
{
HttpPostedFile file = files[i];
string fileName = context.Server.MapPath("~/uploads/" + file.FileName);
file.SaveAs(fileName);
int Size = file.ContentLength;
}
}
}