Setting media_type for ui.download #2491
Closed
me21
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 1 reply
-
Hi @me21, I think this isn't possible at the moment. But I just created PR #2494 to add this feature with the next release. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hello,
Is it possible to specify the media type for
ui.download
command? For example,'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
to indicate the downloaded file is an Excel document.I generate a Word document from the data entered by the user and would like to enable user to download that file. On another hand, the document can be easily recreated from the original data so I'm not sure I should save it to disk - maybe it's possible to keep it in memory?
Beta Was this translation helpful? Give feedback.
All reactions