19 Star 54 Fork 6

hillpy / EasyUploader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

License Build Status Minfied Size Downloads Github Release NPM Release

EasyUploader是什么

EasyUploader是一个轻量级的的js文件上传库。它基于HTML5、canvas、fileReader等技术开发。比较适合移动端使用,pc端浏览器由于HTML支持情况不同,导致使用比较受限,特别是IE浏览器,后期会考虑添加flash上传文件。它不依赖其它js库。

为什么要开发

文件上传在web开发中是非常常见的,现在已有的上传库也非常多(webuploader、uploaderfy等)。但是感觉还是偏重,不够轻量,而且想尽可能的掌控与熟悉源码。故萌生了想开发一款上传库的想法,考虑尽量将其做得简单实用。顺便可以学习到不少的知识(HTML5、canvas、闭包、各种工具等等)。

文档

EasyUploader document

在线例子

EasyUploader example

特性

  • 文件上传
  • 图片压缩
  • 拖曳上传
  • 照片上传旋转修正

备注

项目正在开发中。发布的暂时还是测试版本。我很抱歉我的英语比较烂。关于项目问题,请在github issue提交即可。如果亲能赏个star,我会非常高兴的。

如何安装

  • 使用NPM方式

    npm install easyuploader --save
  • 使用script (unpkg CDN)方式.

    <script src="https://unpkg.com/easyuploader/dist/easyuploader.min.js"></script>

如何运行

  • 运行项目

    1. 克隆本项目

      git clone https://github.com/hillpy/EasyUploader.git
    2. 安装node依赖包

      npm install
    3. 开启rollup监听及web服务(需php环境),url:localhost:1180/example/index.html。

      npm run dev
    4. 打包构建

      npm run build
  • 运行文档

    1. 全局安装gitbook-cli

      npm install gitbook-cli -g
    2. 安装依赖库

      cd doc && gitbook install
    3. 启动服务

      gitbook serve

版本日志

版本日志

待做

1. 避免创建的input中id属性出现冲突

2. 限制文件上传类型

  1. 多文件上传

  2. 图片裁剪

  3. 断点续传、文件分片上传

仓库链接

Github
Gitee

协议

MIT

The MIT License (MIT) Copyright (c) 2018-present shinn_lancelot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

EasyUploader is a lightweight js file upload library. EasyUploader是一个轻量级的的js文件上传库。 展开 收起
JavaScript 等 3 种语言
MIT
取消

发行版 (10)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/hillpy/EasyUploader.git
git@gitee.com:hillpy/EasyUploader.git
hillpy
EasyUploader
EasyUploader
master

搜索帮助