GithubHelp home page GithubHelp logo

whitepoplar022 / webuploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fex-team/webuploader

0.0 2.0 0.0 34.39 MB

It's a new file uploader solution!

Home Page: http://fex.baidu.com/webuploader/

License: BSD 3-Clause "New" or "Revised" License

JavaScript 66.06% HTML 6.81% C++ 10.74% Makefile 0.52% C 0.95% PHP 1.30% CSS 2.78% ActionScript 10.82% Ruby 0.02%

webuploader's Introduction

不再对使用问题进行答复,如果有希望的功能改进或者bugfix可以提交PR

WebUploader 文件上传 Build Status Built with Grunt

WebUploader是一个简单的以HTML5为主,FLASH为辅的现代文件上传组件。在现代的浏览器里面能充分发挥HTML5的优势,同时又不摒弃主流IE浏览器,延用原来的FLASH运行时,兼容IE6+,Andorid 4+,IOS 6+。两套运行时,同样的调用方式,可供用户任意选用。

支持大文件分片并发上传,极大的提高了文件上传效率。

支持

代码肯定存在很多不足和需要优化的地方,欢迎大家提交 pr。感谢以下代码贡献者, 排名不分先后。

@zensh@ushelp@duanlixin

特性

分片、并发

分片与并发结合,将一个大文件分割成多块,并发上传,极大地提高大文件的上传速度。

当网络问题导致传输错误时,只需要重传出错分片,而不是整个文件。另外分片传输能够更加实时的跟踪上传进度。

预览、压缩

支持常用图片格式jpg,jpeg,gif,bmp,png预览与压缩,节省网络数据传输。

解析jpeg中的meta信息,对于各种orientation做了正确的处理,同时压缩后上传保留图片的所有原始meta数据。

多途径添加文件

支持文件多选,类型过滤,拖拽(文件&文件夹),图片粘贴功能。

粘贴功能主要体现在当有图片数据在剪切板中时(截屏工具如QQ(Ctrl + ALT + A), 网页中右击图片点击复制),Ctrl + V便可添加此图片文件。

HTML5 & FLASH

兼容主流浏览器,接口一致,实现了两套运行时支持,用户无需关心内部用了什么内核。

同时Flash部分没有做任何UI相关的工作,方便不关心flash的用户扩展和自定义业务需求。

MD5秒传

当文件体积大、量比较多时,支持上传前做文件md5值验证,一致则可直接跳过。

如果服务端与前端统一修改算法,取段md5,可大大提升验证性能,耗时在20ms左右。

易扩展、可拆分

采用可拆分机制, 将各个功能独立成了小组件,可自由搭配。

采用AMD规范组织代码,清晰明了,方便高级玩家扩展。

webuploader's People

Contributors

2betop avatar belinchung avatar ben1226q avatar colinniu avatar duanlixin avatar gilbertsun avatar gmuteam avatar jarvanxing avatar kkirsche avatar konanzheng avatar limodou avatar miller avatar qingdengyue avatar seeguitar avatar sunln avatar terevor avatar tiye avatar ushelp avatar wengys avatar wpg avatar xspider avatar yeol avatar yumozhi avatar zensh avatar

Watchers

 avatar  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.