WindmillWWindmill
Powered by
ni_kaN
Windmillโ€ข11mo 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}`
    };
    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`,
      }
    };
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c ยท 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra ยท 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 ๐Ÿ™‚

henri-c ยท 4w ago

Similar Threads

[Solved] Frontend script call backend script, do UI stuff and download the returned data as file
John MikeJJohn Mike / help
2y ago
Download csv file from python script + app
ExodeusEExodeus / help
3y ago
See Windmill script dependents via API
cmptrCcmptr / help
10mo ago
Windmill as Headless CMS with windmill rest API
ESiteHosterEESiteHoster / help
3y ago