from.download()

下载一个文件.

const { data, error } = await supabase
  .storage
  .from('avatars')
  .download('folder/avatar1.png')

Parameters

  • path required string

    要下载的文件路径,包括路径和文件名。例如`folder/image.png`.

Notes

  • 所需的策略权限:
    • buckets 权限: none
    • objects 权限: select

Examples

下载文件

const { data, error } = await supabase
  .storage
  .from('avatars')
  .download('folder/avatar1.png')

results matching ""

    No results matching ""