批量上传文件操作

15 views
Skip to first unread message

Hao Weibo

unread,
Apr 22, 2018, 5:57:19 AM4/22/18
to BPyUG~北京Python用户组

使用tornado搭建了站点,要实现上传文件的功能。
要点:
1、允许一次上传多个文件
2、上传过程中显示上传百分比
3、上传中途,前段操作撤销后,取消上传操作

联系到之前做的上传,一般展示在前端的进度条都是前端上传模块自带的。
上传的进度是否可以由后台返回,一次性上传过多的文件,对服务器来说要注意什么

当前的处理是通过websocket来实时返回后台上传的进度,给前端展示。
我感觉是前端显示的进度条跟后台是没有什么关系的。如果后台去实时返回上传进度,不是好主意,
但又没有确定的理由去说服别人。so请教各位,看有啥子建议

Zoom.Quiet

unread,
Apr 22, 2018, 8:09:14 AM4/22/18
to BPyUG~北京Py用户组
绝对意义上应该有关系,
系统安定上可以无关系,
工程合理上必须部分关联
> --
> --
> '''邮件来自 `BPyUG`--北京Python用户组 列表
> 详情: http://groups.google.com/group/bpug
> 发言: bp...@googlegroups.com
> 退订: bpug-uns...@googlegroups.com
> 维基: http://wiki.woodpecker.org.cn/moin/BPUG
> 中国事务: http://groups.google.com/group/CPUG
> 珠江事务: http://groups.google.com/group/zpug
> 北京事务: http://groups.google.com/group/bpug
> 上海事务: http://groups.google.com/group/spug
> 安徽事务: http://groups.google.com/group/ahpug
> 东南事务: http://groups.google.com/group/cpug-eastchina
> 技术列表: http://groups.google.com/group/python-cn
> '''
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“BPyUG~北京Python用户组”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到bpug+uns...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout



--
life is pathetic, go Pythonic! 人生苦短, Python当歌!
俺: http://zoomquiet.io
授: http://creativecommons.org/licenses/by-sa/2.5/cn/
怒: 冗余不做,日子甭过!备份不做,十恶不赦!
KM keep growing environment culture which promoting organization learning!
Reply all
Reply to author
Forward
0 new messages