using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Web; namespace JiangSu.cs { public class CustomMultipartFormDataStreamProvider : MultipartFormDataStreamProvider { public CustomMultipartFormDataStreamProvider(string path) : base(path) { } public override string GetLocalFileName(System.Net.Http.Headers.HttpContentHeaders headers) { //string name = !string.IsNullOrWhiteSpace(headers.ContentDisposition.FileName) ? headers.ContentDisposition.FileName : "NoName"; //return name.Replace("\"", string.Empty); return headers.ContentDisposition.FileName.Replace("\"", string.Empty); } } }