public static async Task TestErrorReport() { var url = "http://localhost:26316/api/ErrorReport"; var r = new ApiReader(url, ""); { await r.PostFile("", new KeyValuePair <string, string>[] { new KeyValuePair <string, string>("sourceObjectTypeId", "1") }, new byte[] { 1 }, "file", "attachment.zip" ); } }