I'm using aws-android-sdk
to send files from Android app to S3.
The filename contains specials character such as =
.
To do that, I use TransferUtility.upload(...)
as explained in this guide.
When passing a key containing special characters such as =
, the key is being URL encoded.
For example, the key:
year=2018/month=1/versions=1,2/my_file.txt
Becomes:
year%253D2018/month%253D1/versions%253D1%252C2/my_file.txt
How can I upload an S3 file from my Android application, while using special characters in it's key?
If you are partitioning your data on S3, it's a common practice to use = sign in the S3 key. Also interesting to note that the AWS SDK for iOS does not automatically encode the S3 keys.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With