Comments (1)
This seems to be due to an oversight where file names are not escaped when the URL is generated. I experimentally added the escaping to App.add_media_file()
using urllib.parse.quote()
and the provided example seems to be working. I'll submit a pull request once I do some more testing, unless anyone else has a better idea. I would do the same to App.add_static_file()
Edit: Doing the escaping yourself doesn't work because the code checks to see if it's a file. If the file name is already escaped, it fails and the correct URL isn't generated.
from nicegui.
Related Issues (20)
- Unable to hide the notification with set_visibility HOT 1
- Sticky page children full width not working HOT 2
- ui.download silently replaces colons with underscores HOT 2
- Erroneous occulusion rendering in 3D scenes HOT 2
- Frequent unknown error message (sw.js not found) HOT 1
- Native mode using doc example only shows a blank window HOT 2
- cannot set padding and margin 0 for `ui.scroll_area()` HOT 2
- Clearing an element containing a ui.timer causes an error HOT 1
- Table add copies of a row when a filter is removed HOT 5
- local file picker example error on nicegui 2.1.0 HOT 2
- CSS property on dialog causes visual glitch when dialog is closed. HOT 2
- table add-slot conflict HOT 1
- when the data of list includes the same name, click sort field twice or more ,the data shows in web will increase HOT 3
- Some UI elements do not follow the style of their parents HOT 2
- Mandatory fields of ui.table
- ui.scroll_area's thumb-style property doesn't work (bar-style does work though) HOT 4
- Current implementation of ChoiceElement.set_options() calls self.update() twice if a value is set, causing bugs in code that relies on data coming from `on_changed()` to be accurate. HOT 2
- [ROS2] How to subscribe image topic and visualize image data on nicegui? HOT 1
- Expected ASGI message 'websocket.accept' or 'websocket.close', but got 'http.response.start'. HOT 1
- After the upgrade, the Highcharts 3D pie chart turned into a 2D chart.
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.