ni_ka
ni_ka•4w ago

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}`
};
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`,
}
};
return {
statmentXLS: {
content: bankStatementXLS,
mimetype: 'application/vnd.ms-excel',
filename: `uba-account-${dateFrom}-${dateTo}.xls`,
}
};
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?