-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage.put() method adds 'public/' prefix to key #396
Comments
Duplicate of #332 we are working on making this configurable. Currently it places the configured permission level as the prefix i.e. public/private |
Try it this way : await Storage.put(filename, file, { filename : this is the s3_key of your file. so when you'll upload the file, the file will be saved in S3 bucket in this name. |
Found a way to do this, let result = await Storage.put('folderName/imageName.png', blob, { |
what about downloading then, Storage.list() returns empty array and if files are placed in "public" named directory then it returns the files |
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Do you want to request a feature or report a bug? bug
What is the current behavior?
I'm trying to upload file to S3. Here is my code:
Storage.put('aaa', body, {})
aws-amplify transforms the key to 'public/aaa'
What is the expected behavior?
aws-cmplify should not change the Key
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions? aws-amplify 0.2.7
The text was updated successfully, but these errors were encountered: