A user could define the permissions of the entity file-uploads by defining the model. It should work out of the box too, though.
Kind: global class
Kind: instance method of PleasureApiPluginUpload
Param | Type | Description |
---|---|---|
category | String |
|
destination | String | function |
Where to store the file. It can be a function receiving an uploadRequest object as the only argument. |
onUpload | function |
Kind: instance typedef of PleasureApiPluginUpload
Param |
---|
getEntities |
router |
config |
© 2019 Martin Rafael tin@devtin.io