ni_kaN
Windmillโ€ข10mo ago
ni_ka

Download file as script result (windmill UI)

Hi all,

I've recently started using windmill and it's amazing!! ๐Ÿ”ฅ

I can't seem to get it to detect my script result as a download in the UI (works if i use an app with a download button). Which would be the correct way?

    return {
      statmentXLS: `data:application/vnd.ms-excel;base64,${bankStatementXLS}`
    };

or
return {
      statmentXLS: {
        content: bankStatementXLS,
        mimetype: 'application/vnd.ms-excel',
        filename: `uba-account-${dateFrom}-${dateTo}.xls`,
      }
    };
Was this page helpful?