Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
yuyuanshifu 9e164ef34c | 3 years ago | |
---|---|---|
buildscripts | 3 years ago | |
config | 3 years ago | |
doc | 3 years ago | |
docs | 3 years ago | |
lib | 3 years ago | |
model | 3 years ago | |
service/minio | 3 years ago | |
utils/args | 3 years ago | |
web_src/minio | 3 years ago | |
.dockerignore | 3 years ago | |
.gitignore | 3 years ago | |
Dockerfile.release | 3 years ago | |
README.md | 3 years ago | |
config.json | 3 years ago | |
go.mod | 3 years ago | |
go.sum | 3 years ago | |
main.go | 3 years ago | |
oss | 3 years ago |
完整实现minio分片上传、断点续传、秒传等功能。
此方案有如下特点:
1、不暴露minio敏感信息
2、针对文件每一个分片生成相应的上传地址
3、文件直接从浏览器上传到minio,不经过后台
4、部署简单,无须部署额外的类似于sts的服务
cd web_src/minio/build
npm run build
go build main.go
minio官方并没有提供断点续传的方案,但
(1)minio的PutObject上传接口内部是实现了分片上传的,我们可以通过此接口封装出分片上传地址生成接口
(2)ListIncompleteUploads接口内部可以查询到已经上传成功的分片信息,包括分片的序号以及对应的etag,我们可以通过此接口封装出查询上传成功的分片信息接口
日期 | 日志 |
---|---|
2020/08/03 | 分片上传 断点续传 秒传 |
2020/09/09 | 不再在mysql中记录分片上传结果以及etag |
vx:lm3775859
No Description
Go Text JavaScript Vue other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》