Top

File extension absent while uploading the file with "uploadFileToConversation" .

Commentaires

2 commentaires

  • Sunny Singh

    Hello,
    It is working fine after putting file extension while assigning the name of the plain text file before sending it to the end user.
    Regards,
    Sunny

    0
    Actions pour les commentaires Permalien
  • Vincent BERDER

    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.

     

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message