Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
675 views
in Technique[技术] by (71.8m points)

使用ng-zorro的upload组件选择大文件时候组件卡死,请问有什么办法优化吗?

使用ng-zorro的upload组件选择大文件时候组件卡死,请问有什么办法优化吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以单独写一个html,放一个<input type="file">,再选择那个文件.

如果这样浏览器也会卡死,就不用试了.大文件不适合用浏览器传输.

如果不会,则可继续想办法分片传输.

分片上传可以参考这个仓库


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...