How can i serve static files from a liveview

You can check out a solution here: With Liveview, what is best way to download a file to the user's browser? (redirect through Phoenix Controller and back to Liveview, or use a background Task?) - #17 by Miserlou