Storage
getPublicUrl()
Use nhost.storage.getPublicUrl
to get the public URL of a file. The public URL can be used for un-authenticated users to access files. To access public files the public
role must have permissions to select the file in the storage.files
table.
Parameters
params required StorageGetUrlParams
Property | Type | Required | Notes |
---|---|---|---|
params.fileId | string | ✔️ | |
params.blur | number | Image blur, between 0 and 100 | |
params.quality | number | Image quality, between 1 and 100, 100 being the best quality | |
params.height | number | Image height, in pixels | |
params.width | number | Image width, in pixels |