Skip to content

Flet with FastAPI Serve Static Files #2026

Answered by nkane2898
nkane2898 asked this question in Q&A
Discussion options

You must be logged in to vote

I got this working. Including /assets/ in the URL was the issue. The following code works as expected.

async def download_results_clicked(self, e):
await self.page.launch_url_async('http://127.0.0.1:8000/uploads/batErrors2023-10-13-12-32-7.csv')

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nkane2898
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nkane2898
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants