Esempio n. 1
0
        /// <summary>
        /// Gets the output file name from header.
        /// </summary>
        /// <returns>
        /// A <see cref="T:System.String" /> that represents the output file name.
        /// </returns>>
        public string ExtractFileName()
        {
            SentinelHelper.ArgumentNull(ContentDisposition);

            string filePath = ContentDisposition.Split(new[] { "filename=" }, StringSplitOptions.None)[1];
            string filename = Path.GetFileName(filePath);

            return(filename);
        }