Lava Filters - UploadBinaryFile
Category:Other
Description:Uploads content into a Rock Binary File. This allows file content to be persisted in the database and used at a later time. The filter returns either a BinaryFile object or null.
Input:
Lava: {% assign content = 'Hello Rock Community' %}
{% assign file = content | UploadBinaryFile:'3', 'hello.txt', 'text/plain' %}
Download