File extension absent while uploading the file with "uploadFileToConversation" .
Hello,
File extension is not displayed to the other end user when the file is uploaded using node SDK "uploadFileToConversation" which is given in the below link.
Also after downloading, the extension is not found to the file.
I have tried with simple plan text file.
Thanks and regards,
Sunny
-
Hi sunny,
Thank you for the feed back.
Personnaly i used the lib
const fileapi = require("file-api");
it allows to get the full object need by file api :file = new fileapi.File({
path: "c:\\temp\\IMG_20131005_173918.jpg", // path of file to read
jsdom: true, // be DoM-like and immediately get `size` and `lastModifiedDate`
async: false, // use `fs.stat` instead of `fs.statSync` for getting
}
);that.rainbowSDK.fileStorage.uploadFileToConversation(conversation, file, strMessage).then(...);
Vincent.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare