mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-23 15:43:33 -06:00
Set filename on the matrix-upload-file content payload
This commit is contained in:
@@ -293,7 +293,8 @@ module.exports = function(RED) {
|
||||
msg.payload.url = file.content_uri;
|
||||
}
|
||||
msg.payload.msgtype = msgtype;
|
||||
msg.payload.body = msg.body || msg.filename || "";
|
||||
msg.payload.body = msg.body || filename || "";
|
||||
msg.payload.filename = filename;
|
||||
msg.payload.info = {
|
||||
"mimetype": contentType,
|
||||
"size": getFileSize(bufferOrPath),
|
||||
|
||||
Reference in New Issue
Block a user