Dembe
06/17/2022, 10:53 AMconst avatarFile = event.target.files[0]
const { data, error } = await supabase
.storage
.from('avatars')
.upload('public/avatar1.png', avatarFile, {
cacheControl: '3600',
upsert: false
})
I have a path like
categories/sport/football,
Do i need to have public first, then categores/sport/fotboll? Or does it work, because when i upload now, i get error, but when i added public before i didnt get an error but it still uploads in both ways.Needle
06/17/2022, 10:53 AMgaryaustin
06/17/2022, 2:31 PM