Example #1
0
 public static void SetFileValues(this HttpPostedFileBase uploadFile, IFile file)
 {
     file.FileData = uploadFile.GetBytesFromUpload();
     file.FileName = uploadFile.GetFileNameWithoutPath();
     file.FileType = uploadFile.ContentType;
 }