Top

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

Kommentare

2 Kommentare

  • 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
    Aktionen für Kommentare 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
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie können immer noch nicht finden, was Sie brauchen?

  • Kontaktieren Sie uns

    Haben Sie eine Frage zu Rainbow? Hinterlassen Sie uns eine Nachricht, um weitere Informationen zu erhalten.

    Kontakt
  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten