Retrieve URLs for assets in public buckets
buckets permissions: noneobjects permissions: noneThe path and name of the file to generate the public URL for. For example folder/image.png.
Triggers the file to be downloaded rather than opened in the browser. Use `DownloadBehavior.withOriginalName` to keep the original file name or `DownloadBehavior.named('custom.png')` to override it.
Transform the asset before serving it to the client.
final String publicUrl = supabase
.storage
.from('public-bucket')
.getPublicUrl('avatar1.png');
final String publicUrl = await supabase
.storage
.from('public-bucket')
.getPublicUrl(
'avatar1.png',
transform: TransformOptions(
width: 200,
height: 200,
),
);
final String publicUrl = supabase
.storage
.from('public-bucket')
.getPublicUrl(
'avatar1.png',
download: DownloadBehavior.withOriginalName,
);