Container for HTTP file
Exemple #1
0
 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);
 }
Exemple #3
0
 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));
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 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));
 }