Assets
The Asset system enables bundle authors to provide a means for end users to upload custom files from the dashboard
for use in the bundle. To enable the Asset system in a bundle, add code like the following to your bundle's package.json
:
NodeCG will automatically create a Replicant for each assetCategory
in a bundle. To access these asset Replicants,
declare them as you would any other Replicant in your bundle. For example:
These Replicants are arrays. Each item in these arrays describes one of the uploaded files: