Function: getLocalFileUrl()
getLocalFileUrl(
props):string
Gets the path + search string for a storage file by OID (no host). Use for same-origin redirects (e.g. in API handlers) or to build a full URL by prefixing with a host.
Parameters
props
The request properties
params
{ oid: string; } = fileParamsSchema
Path parameters (oid)
params.oid
string = ...
query?
{ name?: string; } = ...
Query parameters (name)
query.name?
string = ...
Returns
string
Path and query string, e.g. /files/{oid} or /files/{oid}?name=...