GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wemakebug/FileUpload.Java: 文件,图片上传,分片上传,断点续传,“秒传”

BranchesTags
Open more actions menu

Latest commit

 

History

56 Commits
56 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main
src/main
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

FileUpload.Java Build Status

文件上传,图片上传(后缀名验证,文件类型验证),大文件分片上传,“秒传”,断点续传,传输失败自动重试,手动重试

1.主要功能经测试支持IE9以上,Chrome,FireFox;其他浏览器未测试;

2.文件上传部分:主要实现了文件的上传,进度条,多文件一起上传,上传前删除,上传失败后手动删除,上传失败自动重试,上传失败手动重试(retry按钮),自动上传;

3.大文件上传部分:重磅功能:大文件“秒传”;在文件上传部分已有功能的基础上实现了按10MB分为多个块,异步上传,服务端合并,MD5验证,文件秒传,断点续传,网络问题自动重试,手动重试;

4.图片上传部分:在文件上传部分已有功能的基础上实现了上传前缩略图预览,前台js文件后缀验证,后台代码文件后缀验证和文件类型验证(就算修改后缀名也无法成功上传),支持图片上传前压缩;

5.多选择器多文件上传:通过不同的文件选择器选择不同的文件,最后同时上传,Controller只是简单示意,并没有详细写实现,具体怎么做可参照上面的其它上穿方法。

文件上传这里好多方法可以抽象出来,当然这个项目只是一个示例,所以我偷了点懒,应用到生产环境时还要根据环境选择保存到不同的文件路径等等,大家根据自己的情况自己封装方法吧。

About

文件,图片上传,分片上传,断点续传,“秒传”

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

228 stars

Watchers

4 watching

Forks

236 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.