New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amis文件分块上传用法,希望提供更详细的使用demo #10205
Comments
amis 里面没有对应后端接口实现,爱速搭平台内部有实现,能对接各种对象存储。 自己写接口请参考代码处的参数传递 https://github.com/baidu/amis/blob/master/packages/amis/src/renderers/Form/InputFile.tsx#L1076-L1230 |
|
amis 平台也有实现,可以对接 bos,群组配置里面有上传配置相关 |
您第一个回复里“amis 里面没有对应后端接口实现”, 第二个回复里“amis 平台也有实现”; |
我以为你说的是厂内 amis 平台,如果是 amis 渲染器,没有对接的 demo |
如果是厂内 amis 平台,不需要实现那三个接口,直接在群组系统配置里面填写 bos 信息即可 |
大文件也可以直接上传么,那我试一下 |
实现场景:
想要做游戏安装包的批量上传,每个游戏安装包大概2G
存在的问题:
https://baidu.github.io/amis/zh-CN/components/form/input-file#%E5%88%86%E5%9D%97%E4%B8%8A%E4%BC%A0
帮助文档中,对于分块上传的三个接口不太清晰,这里是要求用户自己编写接口,以及三个接口数据的拼接,都是用户自己实现么
startChunkApi 用来做分块前的准备工作
chunkApi 用来接收每个分块上传
finishChunkApi 用来收尾分块上传
The text was updated successfully, but these errors were encountered: