from.getPublicUrl()

获得公共bucket中资源的URL。

final res = supabase
  .storage
  .from('public-bucket')
  .getPublicUrl('avatar1.png');

final publicURL = res.data;

Notes

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

Examples

返回一个公共bucket中资源的URL

final res = supabase
  .storage
  .from('public-bucket')
  .getPublicUrl('avatar1.png');

final publicURL = res.data;

results matching ""

    No results matching ""