from.download()
Downloads a file.
const { data, error } = await supabase
.storage
.from('avatars')
.download('folder/avatar1.png')
Parameters
pathrequired
string
The file path to be downloaded, including the path and file name. For example
folder/image.png
.
Notes
- Policy permissions required:
buckets
permissions: noneobjects
permissions:select
Examples
Download file
const { data, error } = await supabase
.storage
.from('avatars')
.download('folder/avatar1.png')