public static Byte[] UploadFiles(String url, String files) { _lastMime = String.Empty; var dr = new DesktopRequest(); var result = dr.UploadFiles(url, files); _lastMime = dr.MimeType; return(result); }
public static Byte[] UploadFiles(String url, String files, String search) { _lastMime = String.Empty; var dr = new DesktopRequest() { Search = search }; Byte[] result; using (var resp = new DesktopResponse()) { if (url.StartsWith("_image/", StringComparison.OrdinalIgnoreCase)) { result = dr.SaveImage("/" + url, files, resp); } else { result = dr.UploadFiles(url, files, resp); } } _lastMime = dr.MimeType; _lastStatusCode = dr.StatusCode; return(result); }