Adds a channel-web module configuration variable "uploadsFileUploadedTextContentElement" that allows specifying a text content element to be rendered and sent to the user after a file upload (by default, it sends "Uploaded a file originalName")
OBS: Only set it on the bot-scoped channel-web configuration since content element IDs are specific for each bot (right-click on the global config file and 'Duplicate to current bot').
To use, create a builtin_text content element:
After, get the content element id, for example: "#!builtin_text-OzpN5X" (only builtin_text contentElements are supported)
Variables available:
storage: 'local' or 's3'
url: URL where the file has been uploaded
originalName: Name that the file had on the user's computer
mime: mime type of the file, example: 'image/gif'
size: size from the file in bytes
User variables are also available at 'event.state.user' (only user variables are supported)
Adds a channel-web module configuration variable "uploadsFileUploadedTextContentElement" that allows specifying a text content element to be rendered and sent to the user after a file upload (by default, it sends "Uploaded a file originalName")
OBS: Only set it on the bot-scoped channel-web configuration since content element IDs are specific for each bot (right-click on the global config file and 'Duplicate to current bot').
To use, create a builtin_text content element:
After, get the content element id, for example: "#!builtin_text-OzpN5X" (only builtin_text contentElements are supported)
Variables available:
storage: 'local' or 's3' url: URL where the file has been uploaded originalName: Name that the file had on the user's computer mime: mime type of the file, example: 'image/gif' size: size from the file in bytes
User variables are also available at 'event.state.user' (only user variables are supported)
Content Element Multilanguage is also supported: