private string GetExtension(ContentDispositionHeaderValue contentDisposition) { string fileName = contentDisposition.UnquotedFileName(); if (string.IsNullOrEmpty(fileName)) { return(fileName); } return(fileName.Split('.').Last()); }
protected virtual string GetFileName(ContentDispositionHeaderValue contentDisposition) { return(contentDisposition.UnquotedFileName()); }