Uploading file as public to S3 in Kotlin Android
I am developing an Android application using Kotlin. I am trying to upload file to the AWS S3 bucket. I could upload to the file to the Bucket successfully. But the problem is that the file is uploaded as private. Instead I want it to be uploaded and set public as well.
This is my code
private fun uploadPhotoToS3(path : String){
doAsync {
AWSMobileClient.getInstance().initialize(applicationContext).execute()
val s3Client =...