S3 uploadFileMultipart fails with empty input stream
JLofgren opened this issue · 1 comments
JLofgren commented
WHAT IS WRONG
I use uploadFileMultipart
to stream serialized database transactions to an S3 file. But, in the edge case that my DB query produces no results, I get the following error:
The XML you provided was not well-formed or did not validate against our published schema (Service: S3, Status Code: 400, Request ID: AXVBZSEAM6S8WJR7, Extended Request ID: luAacBiEwX5Xt8rpN2BvoNdaub+Q3phQTKal5flI0X5GedYxgIRONNXXp77V+6Yd7EZw0PL20t4=)
WHAT IS EXPECTED
I think that the most sensible thing in this case is to just create an empty file.
jeet23 commented
I am facing the same error when trying to use uploadFileMultipart
with a stream of empty byte.
Is there any fix planned for this?
uploadFile
works without any problems (no XML errors) even with empty input stream.