We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d093d commit 2ad29adCopy full SHA for 2ad29ad
CHANGELOG.md
@@ -1,6 +1,8 @@
1
# Changelog
2
3
## [Unreleased]
4
+### Fixed
5
+- Multipart file upload for Async clients, by @HardNorth
6
7
## [5.5.0]
8
### Added
reportportal_client/core/rp_requests.py
@@ -578,6 +578,7 @@ async def payload(self) -> aiohttp.MultipartWriter:
578
mp_writer = aiohttp.MultipartWriter('form-data')
579
mp_writer.append_payload(json_payload)
580
for _, file in self._get_files():
581
- file_payload = aiohttp.Payload(file[1], content_type=file[2], filename=file[0])
+ file_payload = aiohttp.BytesPayload(file[1], content_type=file[2])
582
+ file_payload.set_content_disposition('form-data', name='file', filename=file[0])
583
mp_writer.append_payload(file_payload)
584
return mp_writer
0 commit comments