Git Product home page Git Product logo

minio-breakpoint-upload's Introduction

minio-breakpoint-upload

一、基本介绍

完整实现minio分片上传、断点续传、秒传等功能。

此方案有如下特点:
1、不暴露minio敏感信息
2、针对文件每一个分片生成相应的上传地址
3、文件直接从浏览器上传到minio,不经过后台
4、部署简单,无须部署额外的类似于sts的服务

二、效果演示

1、上传页面
avatar
2、前端上传日志
avatar
3、minio上传日志
avatar

三、使用说明

web端

cd web_src/minio/build
npm run build

server端

go build main.go

四、详细方案

minio官方并没有提供断点续传的方案,但
(1)minio的PutObject上传接口内部是实现了分片上传的,我们可以通过此接口封装出分片上传地址生成接口
(2)ListIncompleteUploads接口内部可以查询到已经上传成功的分片信息,包括分片的序号以及对应的etag,我们可以通过此接口封装出查询上传成功的分片信息接口

具体流程如下:
avatar

四、更新日志

日期 日志
2020/08/03 分片上传 断点续传 秒传
2020/09/09 不再在mysql中记录分片上传结果以及etag
2020/12/09 解决大文件上传过程中浏览器内存溢出问题

五、博客地址

https://blog.csdn.net/lmlm21/article/details/107768581

六、联系方式

vx:lm3775859

minio-breakpoint-upload's People

Contributors

yuyuanshifu avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.