Comments (1)
You can already drop a file on ui.upload
. You can try the following example. Dropping a file onto the input field should show its filename. Hitting "Upload" should print the file content onto the console (besides other event information).
from nicegui import ui
ui.upload(on_upload=lambda *args: print(*args, flush=True))
ui.run(port=1234)
See #74 for discussing ideas for improving the upload element.
from nicegui.
Related Issues (20)
- May I ask if it's possible to apply for a CVE for this project if a security vulnerability is found? HOT 7
- Quasar CSS flexbox layout classes don't work HOT 7
- Intrinsic high CPU usage HOT 5
- [AG Grid] Setting column to sortable doesn't work in a callback function HOT 4
- emoji favicons depend on python string length in a weird way HOT 1
- Docs: "Input element with date picker" - menu is closed when clicking "<" or ">" HOT 1
- ui.date doesn't not close the menu after picking the day HOT 6
- Select & Radio not working with On Air HOT 2
- del Client.instances[self.id] Key error HOT 3
- 'Tailwind' object has no attribute 'value' HOT 1
- Plotly chart changes position after updating the chart. HOT 10
- ⚠️ `ui.upload` File upload stops at 99.9% HOT 1
- 3D visualization not reliable HOT 15
- From 188c81b on some pages load extremely slowly HOT 9
- I use pyinstaller to generate .exe file find question, how to solve it?
- Setting ui.number min/max property is failing after version nicegui-1.4.19 HOT 1
- When executing the run_method , a KeyError error occurs. HOT 6
- Native mode [Windows] : Stay on top option
- Firefox cannot establish the websocket connection but other browsers and firefox private browsing can. HOT 8
- app.storage.user in unit tests throws error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nicegui.