Fix:s3 Presign Put Request with File upload (#3235)
* Fix:s3 Presign Put Request with File upload * Added imports in test Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
3ea46617d9
commit
00a5641cb9
2 changed files with 29 additions and 1 deletions
|
|
@ -1092,6 +1092,11 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
|
|||
else:
|
||||
# Flask server
|
||||
body = request.data
|
||||
# when the data is being passed as a file
|
||||
if request.files and not body:
|
||||
for _, value in request.files.items():
|
||||
body = value.stream.read()
|
||||
|
||||
if body is None:
|
||||
body = b""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue