I have a function that has a parameter like HttpPostedFileBase , and I get the file name using (Path.GetFileName):
public ActionResult Save(IEnumerable<HttpPostedFileBase> attachments) { foreach (var file in attachments) { var fileName = Path.GetFileName(file.FileName); } }
How can I get the file size
source share