Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

O3-4527: Add an attachment in Visit Patient Scenario #79

Merged
merged 5 commits into from
Mar 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Deleting the previous image
  • Loading branch information
UNCANNY69 committed Mar 13, 2025
commit 1b91704b18142c3f3a6b37c0431b37091eec1740
Original file line number Diff line number Diff line change
@@ -238,9 +238,9 @@ public HttpRequestActionBuilder uploadAttachment(String patientUuid) {
.bodyPart(StringBodyPart("fileCaption", "Test Image"))
.bodyPart(StringBodyPart("patient", patientUuid))
.bodyPart(
RawFileBodyPart("file", "Sample_1MB_img.png")
.contentType("image/png")
.fileName("Sample_1MB_img.png")
RawFileBodyPart("file", "Sample_1MB_image.jpg")
.contentType("image/jpg")
.fileName("Sample_1MB_image.jpg")
)
.asMultipartForm();
}
Binary file added src/test/resources/Sample_1MB_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/test/resources/Sample_1MB_img.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image is around 3.4KB. Can we upload one that's around 1MB? It’s better to upload an image of around 1MB. Please check the previous comments we posted
Screenshot 2025-03-13 at 10 35 02 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure @Bawanthathilan i had a misunderstanding , sorry for the inconvenience. I have updated the PR

Binary file not shown.