public static IContentBuilder Name(this IContentBuilder @this, string name) { var last = @this.Last(); last.Headers.ContentDisposition.Name = name; return(@this); }
public static IContentBuilder File(this IContentBuilder @this, string fileName) { var last = @this.Last(); fileName = Path.GetFileName(fileName); last.Headers.ContentDisposition.FileName = fileName; last.Headers.ContentDisposition.FileNameStar = fileName; return(@this); }