DEV Community 👩‍💻👨‍💻

Discussion on: AWS Amplify Storage: React example for Avatar pictures

mattdwebb profile image
Matt D. Webb • Edited on

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

johanneskonings profile image
Johannes Konings Author

Hi, it's unique through the level "private" via this command Storage.configure({ track: true, level: "private" });

So far I had no 403 permission denied.