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
Next Next commit
Changing the image
  • Loading branch information
UNCANNY69 committed Mar 13, 2025
commit 11210640c1c1eab76571760ee67c42d2044f8cf1
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", "TestImage.png")
RawFileBodyPart("file", "Sample_1MB_img.png")
.contentType("image/png")
.fileName("TestImage.png")
.fileName("Sample_1MB_img.png")
)
.asMultipartForm();
}
Binary file added 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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.