Slack API files.upload 不带预览(或非明文)

Tia*_*ago 8 javascript node.js slack-api

我一直在与 slack 的 files.upload API 作斗争。即使我坚持文件应该是非纯文本的任何格式,例如:

    request.post({
      url: 'https://slack.com/api/files.upload',
      formData: {
        token: bot.config.token,
        channels: message.channel,
        file: fs.createReadStream(realLocalPath),
        filetype: 'zip',
        mode: 'hosted'
      },
    }, function (err, response) {
        console.log(JSON.parse(response.body));
    });
Run Code Online (Sandbox Code Playgroud)

它似乎坚持将其设为带有预览的明文:

     mimetype: 'text/plain',
     filetype: 'text',
     pretty_type: 'Plain Text',
     ...
     mode: 'snippet'
Run Code Online (Sandbox Code Playgroud)

这是来自 API 响应的文件属性。有谁知道我如何可以覆盖这个?

我希望我的文件是可下载的。没有片段,没有预览,只有一个可下载的文件。