new asset(fluro)
- Source:
Creates a new FluroAsset instance.
This module provides a number of helper functions for managing asset, image, video and audio items in Fluro
Parameters:
| Name | Type | Description |
|---|---|---|
fluro |
FluroCore | A reference to the parent instance of the FluroCore module. The FluroAsset module is usually created by a FluroCore instance that passes itself in as the first argument. |
Methods
(static) getUrl(assetID, params) → {string}
- Source:
This function generates a url for the binary data of an
asset, image, audio, or video file that has been uploaded to Fluro
Parameters:
| Name | Type | Description |
|---|---|---|
assetID |
string | The _id of the item you want to retrieve |
params |
object |
Returns:
A valid Fluro URL
- Type
- string