希望添加一个使用浏览器访问文件系统的功能 #643
jiayezi
started this conversation in
Feature request
Replies: 1 comment 2 replies
-
可以直接使用 文档: https://pywebio.readthedocs.io/zh-cn/latest/battery.html#pywebio_battery.file_picker File System Access API不太适合这个场景,因为这是通过js来访问文件,如果集成进pywebio还是需要将文件内容发送到python端来操作 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我经常使用pywebio做图形化界面的程序,但是使用这个程序修改计算机上的文件,需要通过表单手动上传,修改之后再下载导到本地,这样操作非常麻烦,尤其是要批量处理的时候。
我在网上查了一下,发现可以使用File System Access API直接读写本地的文件和目录:https://developer.chrome.com/docs/capabilities/web-apis/file-system-access?hl=zh-cn
但是我对JS语言不熟练,使用File System Access API访问本地文件还是很困难。
希望作者把File System Access API或者其他类似的API集成到pywebio的新版本中。
Beta Was this translation helpful? Give feedback.
All reactions