I would assume something like the following:
const { id } = await Auth.currentUserInfo(); Storage.put(`${id}-avatar.png`, ...);
Also, there maybe some issues with the .configure({ level: "private" }); I have seen some 403 permission denied which is discussed here GitHub Issue: Amplify S3 404
.configure({ level: "private" });
Hi, it's unique through the level "private" via this command Storage.configure({ track: true, level: "private" });
Storage.configure({ track: true, level: "private" });
docs.amplify.aws/lib/storage/confi...
So far I had no 403 permission denied.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I would assume something like the following:
Also, there maybe some issues with the
.configure({ level: "private" });
I have seen some 403 permission denied which is discussed here GitHub Issue: Amplify S3 404Hi, it's unique through the level "private" via this command
Storage.configure({ track: true, level: "private" });
docs.amplify.aws/lib/storage/confi...
So far I had no 403 permission denied.