This commit is contained in:
2020-05-09 01:05:04 +00:00
parent 2d66eb49e8
commit cd8958c3a4

View File

@@ -121,6 +121,9 @@ namespace raven_integration
formDataContent.Add(new StringContent("2"), name: "AttachToObjectType");
formDataContent.Add(new StringContent("1"), name: "AttachToObjectId");
formDataContent.Add(new StringContent("Test:AttachmentUploadDownloadDeleteShouldWork"), name: "Notes");
formDataContent.Add(new StringContent("[{\"name\":\"test.png\",\"lastModified\":1586900220990}]"), name: "FileData");
StreamContent file1 = new StreamContent(File.OpenRead($"{Util.TEST_DATA_FOLDER}\\test.png"));
file1.Headers.ContentType = new MediaTypeHeaderValue("image/png");