private string SaveFileToDisk(HttpPostedFileBase file, string name, string register, int vnr) { string filtype; string seofilename = RegisterUrls.MakeSeoFriendlyDocumentName(file, out filtype, out seofilename); string filename = register + "_" + name + "_v" + vnr + "_" + seofilename + "." + filtype; var path = Path.Combine("", filename); file.SaveAs(path); return filename; }