Top

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

Comentarios

2 comentarios

  • 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
    Acciones de comentarios 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
    Acciones de comentarios Permalink

Iniciar sesión para dejar un comentario.

  • Pregunte a la Comunidad

    ¿Necesitas ayuda? Haz tus preguntas en la Comunidad para obtener respuestas de otros usuarios de Rainbow.

    Enviar un mensaje.