1. Handlebars Helpers
  2. File Share URL

Handlebars Helpers

File Share URL

Returns a URL that can be used to share a private file publicly

Usage

Helper name : file_share_url

Parameter Description
1 The fileuuid or file object (with fileuuid property) to link to
2 The optional duration in seconds the URL should be valid for

Examples

fileuuid only

loading...

Result:

loading...

fileuuid with duration

The URL will be valid for 1 hour (3600 seconds)

loading...

Result:

loading...
NOTE

If the specified file is not private, the helper will return a direct https://files.stubber.com/file/<fileuuid> URL.