Downloads a file from a private bucket. For public buckets, make a request to the URL returned from getPublicUrl
instead.
buckets
table permissions: noneobjects
table permissions: select
The full path and file name of the file to be downloaded. For example `folder/image.png`.
const \{ data, error \} = await supabase
.storage
.from('avatars')
.download('folder/avatar1.png')
const \{ data, error \} = await supabase
.storage
.from('avatars')
.download('folder/avatar1.png', \{
transform: \{
width: 100,
height: 100,
quality: 80
\}
\})