The error message is slightly confusing, but once you see it, the problem is obvious:
Quote:
Please specify one of either an InputStream or a FilePath to be PUT as an S3 object.
The error is telling you that you have specified
both an
InputStream
and a
FilePath
, which is not supported.
Remove the
FilePath
property from your
PutObjectRequest
object.