blocklet / media-kit

Simple image upload and sharing blocklet
Other
4 stars 0 forks source link

[ Bug ]: 使用 @blocklet/uploader 组件的时候,上传超过了 Blocklet Server 的限制的时候,没有报错文件太大,上传成功了 #93

Open skypesky opened 1 year ago

skypesky commented 1 year ago

🐛 Bug Report

详细描述

复现这个 bug

截图或报错信息(可选)

image

异常的行为

期望的行为

可能的解决方案(可选)

https://github.com/ArcBlock/did-spaces/issues/808

FireTable commented 1 year ago

因为有断点续连功能,分了很多 chunk,需要考虑一下兼容 server 的配置

FireTable commented 1 year ago

前端组件配置 coreProps.restrictions, 参考 https://uppy.io/docs/uppy/#restrictions 配置成 server 限制的大小即可, chunkSize 还是有必要的