Top

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

Comentários

2 comentários

  • 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
    Ações de comentário Permalink
  • 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem