Download/Upload file to/from user's file system #1297
TylerPachal
started this conversation in
General
Replies: 1 comment 4 replies
-
I don’t think you want a smart cell, but Kino.JS or Kino.JS.Live. Then you can send the contents directly through JS. If you can’t emulate downloads via JS, then a new endpoint would be indeed necessary. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am looking to implement a custom smart cell that would create a
Download
button, allowing users to export the output of a cell to a file on their file system. For example, running a database query and downloading the resulting table as a.csv
.If you could point me in the right direction I could try to implement this. I think it will require a new controller in the Livebook application to facilitate the downloading of the file, which could be opened in a new tab (relative to the livebook page). But perhaps there is a better way to implement this?
Beta Was this translation helpful? Give feedback.
All reactions