private static string GetMultipartFileHeader(HttpFile file) { return string.Format ("--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}", FormBoundary, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", _lineBreak); }
private static string GetMultipartFileHeader(HttpFile file) { return string.Format( "--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}", FORM_BOUNDARY, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", LINE_BREAK); }
private string GetMultipartFileHeader(HttpFile file) { return(string.Format("--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}", FormBoundary, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", Environment.NewLine)); }
private string GetMultipartFileHeader(HttpFile file) { return string.Format ("--{0}{3}Content-Disposition: form-data; name=\"{1}\"; filename=\"{1}\"{3}Content-Type: {2}{3}{3}", FormBoundary, file.FileName, file.ContentType ?? "application/octet-stream", Environment.NewLine); }
private static string GetMultipartFileHeader(HttpFile file) { return(string.Format( "--{0}{4}Content-Disposition: form-data; name=\"{1}\"; filename=\"{2}\"{4}Content-Type: {3}{4}{4}", FORM_BOUNDARY, file.Name, file.FileName, file.ContentType ?? "application/octet-stream", LINE_BREAK)); }