mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
File Upload Example
This example allows the user to select a file from their file system. The contents of the selected file are then rendered to the page either as a whole or in chunks.
Concepts
Demonstrates reading from files in Yew with the help of gloo::file.
Improvements
- Show a progress bar if the file is read in chunks
- Do something interesting with the uploaded file like displaying pictures
- Improve the presentation of the example with CSS.
Running
Run this application with the trunk development server:
trunk serve --open