Closed Faiyyaz closed 3 years ago
Hi, Please check this working code https://gist.github.com/furaiev/e0fff973b31babd36f5c5d7b53d85349
@Faiyyaz It happened in my case too, the reason is when it's calculating the signature it assumes acl: "public-read" as per the toString() method and if your bucket has permissions "Block all public access" on, then it means your bucket is private which is also the default. So that's why it isn't working. To fix it you can either remove the acl property from the conditions in toString() or set it as "private". Make sure to remove or set the same in the uploadFile() method
https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#sample-acl
I still can not access my Bucket with POST/PUT method. GET works fine.
Hi,
I am unable to upload images using the library.
I m getting the below response
The code for upload is as follows :
Policy class