fileupload文件大小限制 #691
Unanswered
YorkWong1995
asked this question in
Q&A
Replies: 1 comment 5 replies
-
尝试切换aiohttp后端试试:
文档:https://pywebio.readthedocs.io/zh-cn/latest/platform.html#aiohttp-support |
Beta Was this translation helpful? Give feedback.
5 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.
-
我在创建时已经设置了比较大的max_payload_Size和websocket_max_message_size
但是在上传文件时还是会报错,我需要上传一个223M的文件和3个10M以下的文件,但是链接会断开。试了很多方法没有解决。
start_server(main, port=9089, debug=True, remote_access=True, auto_open_webbrowser=True, reconnect_timeout=60,
heartbeat_check_interval=30,
max_payload_size=1024 * 1024 * 1024, websocket_max_message_size=1024 * 1024 * 1024)
file_upload('****', accept='.bin', name='bin_file', required=True, multiple=True, max_size=1024 * 1024 * 1024,
chunk_size=10 * 1024 * 1024),
也尝试修改了turnado大小限制
websocket.WebSocketHandler.MAX_MESSAGE_SIZE = 1024 * 1024 * 1024
当前python的版本是 3.10
浏览器是chrome
Beta Was this translation helpful? Give feedback.
All reactions