AWS: how to fix S3 event replacing space with '+' sign in object key names in json

后端 未结 7 1439
名媛妹妹
名媛妹妹 2020-12-31 00:23

I have a lamba function to copy objects from bucket \'A\' to bucket \'B\', and everything was working fine, until and object with name \'New Text Document.txt\' was created

7条回答
  •  盖世英雄少女心
    2020-12-31 01:01

    I think in Java you should use:

    getS3().getObject().getUrlDecodedKey()
    

    method that returns decoded key, instead of

    getS3().getObject().getKey()
    

提交回复
热议问题