Collection upload
The collection-upload callback — a plugin participates when files are uploaded into a collection via hotfolder, WebDAV or the API, modifying the created objects and logging per-file results.
Registering
collection_upload:
filename_copy:
config: # parameters, configured per collection
- name: filename_copy
parameters:
filename_target:
type: text
callbacks:
objects:
plugin_user: # optional — act as a configured user
base_config: "user.api_user"
exec:
service: "node"
commands:
- prog: "node"
stdin: { type: body }
stdout: { type: body }
args:
- { type: "value", value: "%_exec.pluginDir%/server/objects.js" }The payload
Key
Description
The response
Example
See also
Last updated