Skip to main content

from.createSignedUrl()

Create signed url to download file without requiring permissions. This URL can be valid for a set number of seconds.

final res = await supabase
.storage
.from('avatars')
.createSignedUrl('avatar1.png', 60);
final signedURL = res.data;

Notes#

  • Policy permissions required:
    • buckets permissions: none
    • objects permissions: select

Examples#

Create Signed URL#

final res = await supabase
.storage
.from('avatars')
.createSignedUrl('avatar1.png', 60);
final signedURL = res.data;