# [Uppy](https://uppy.io)
<img src="https://uppy.io/images/logos/uppy-dog-head-arrow.svg" width="120" alt="Uppy logo: a superman puppy in a pink suit" align="right">
<a href="https://www.npmjs.com/package/uppy"><img src="https://img.shields.io/npm/v/uppy.svg?style=flat-square"></a>
<a href="https://travis-ci.org/transloadit/uppy"><img src="https://img.shields.io/travis/transloadit/uppy/master.svg?style=flat-square" alt="Build Status"></a>
Uppy is a sleek, modular JavaScript file uploader that integrates seamlessly with any application. Itâs fast, easy to use and lets you worry about more important problems than building a file uploader.
- **Fetch** files from local disk, remote urls, Google Drive, Dropbox, Instagram, or snap and record selfies with a camera;
- **Preview** and edit metadata with a nice interface;
- **Upload** to the final destination, optionally process/encode
**[Read the docs](https://uppy.io/docs)** | **[Try Uppy](https://uppy.io/examples/dashboard/)**
Uppy is being developed by the folks at [Transloadit](https://transloadit.com), a versatile file encoding service.
## Example
<img width="700" alt="Uppy UI Demo: modal dialog with a few selected files and an upload button" src="https://github.com/transloadit/uppy/raw/master/uppy-screenshot.jpg">
Code used in the above example:
```js
const Uppy = require('uppy/lib/core')
const Dashboard = require('uppy/lib/plugins/Dashboard')
const GoogleDrive = require('uppy/lib/plugins/GoogleDrive')
const Instagram = require('uppy/lib/plugins/Instagram')
const Webcam = require('uppy/lib/plugins/Webcam')
const Tus = require('uppy/lib/plugins/Tus')
const uppy = Uppy({ autoProceed: false })
.use(Dashboard, { trigger: '#select-files' })
.use(GoogleDrive, { target: Dashboard, host: 'https://server.uppy.io' })
.use(Instagram, { target: Dashboard, host: 'https://server.uppy.io' })
.use(Webcam, { target: Dashboard })
.use(Tus, { endpoint: 'https://master.tus.io/files/' })
.run()
.on('complete', (result) => {
console.log('Upload result:', result)
})
```
**[Try it online](https://uppy.io/examples/dashboard/)** or **[read the docs](https://uppy.io/docs)** for more details on how to use Uppy and its plugins.
## Features
- Lightweight, modular plugin-based architecture, easy on dependencies :zap:
- Resumable file uploads via the open [tus](https://tus.io/) standard, so large uploads survive network hiccups
- Supports picking files from: Webcam, Dropbox, Google Drive, Instagram, bypassing the userâs device where possible, syncing between servers directly via [uppy-server](https://github.com/transloadit/uppy-server)
- Works great with file encoding and processing backends, such as [Transloadit](https://transloadit.com), works great without (just roll your own Apache/Nginx/Node/FFmpeg/etc backend)
- Sleek user interface :sparkles:
- Optional file recovery (after a browser crash) with [Golden Retriever](https://uppy.io/docs/golden-retriever/)
- Speaks multiple languages (i18n) :earth_africa:
- Built with accessibility in mind
- Free for the world, forever (as in beer ðº, pizza ð, and liberty ð½)
- Cute as a puppy, also accepts cat pictures :dog:
## Installation
``` bash
$ npm install uppy --save
```
We recommend installing from npm and then using a module bundler such as [Webpack](http://webpack.github.io/), [Browserify](http://browserify.org/) or [Rollup.js](http://rollupjs.org/).
Add CSS [uppy.min.css](https://transloadit.edgly.net/releases/uppy/v0.24.1/dist/uppy.min.css), either to `<head>` of your HTML page or include in JS, if your bundler of choice supports it â transforms and plugins are available for Browserify and Webpack.
Alternatively, you can also use a pre-built bundle from Transloadit's CDN: Edgly. In that case `Uppy` will attach itself to the global `window.Uppy` object.
> â ï¸ The bundle currently consists of most Uppy plugins, so this method is not recommended for production, as your users will have to download all plugins when you are likely using just a few.
1\. Add a script to the bottom of `<body>`:
``` html
<script src="https://transloadit.edgly.net/releases/uppy/v0.24.1/dist/uppy.min.js"></script>
```
2\. Add CSS to `<head>`:
``` html
<link href="https://transloadit.edgly.net/releases/uppy/v0.24.1/dist/uppy.min.css" rel="stylesheet">
```
3\. Initialize:
``` html
<div class="UppyDragDrop"></div>
<script>
var uppy = Uppy.Core()
uppy.use(Uppy.DragDrop, { target: '.UppyDragDrop' })
uppy.use(Uppy.Tus, { endpoint: '//master.tus.io/files/' })
uppy.run()
</script>
```
## Documentation
- [Uppy](https://uppy.io/docs/uppy/) â full list of options, methods, and events.
- [Plugins](https://uppy.io/docs/plugins/) â list of Uppy plugins and their options.
- [Server](https://uppy.io/docs/server/) â setting up and running an Uppy Server instance, which adds support for Instagram, Dropbox, Google Drive and other remote sources.
- [React](https://uppy.io/docs/react/) â components to integrate Uppy UI plugins with React apps.
- [Architecture & Making a Plugin](https://uppy.io/docs/writing-plugins/) â how to write a plugin for Uppy [documentation in progress].
## Plugins
- `Tus` â resumable uploads via the open [tus](http://tus.io) standard
- `XHRUpload` â regular uploads for any backend out there (like Apache, Nginx)
- `Transloadit` â support for [Transloadit](http://transloadit.com)âs robust file uploading and encoding backend
- `AwsS3` â upload to AWS S3 (also works for Google Cloud)
- `Dashboard` â universal UI with previews, progress bars, metadata editor and all the cool stuff
- `DragDrop` â plain and simple drag and drop area
- `FileInput` â even plainer âselect filesâ button
- `ProgressBar` â minimal progress bar that fills itself when upload progresses
- `StatusBar` â more detailed progress, pause/resume/cancel buttons, percentage, speed, uploaded/total sizes (included by default with `Dashboard`)
- `Informer` â send notifications like âsmileâ before taking a selfie or âupload failedâ when all is lost (also included by default with `Dashboard`)
- `GoldenRetriever` â restores files after a browser crash, like itâs nothing
- `ThumbnailGenerator` â generates image previews (included by default with `Dashboard`)
- `Form` â collects metadata from `<form>` right before an Uppy upload, then optionally appends results back to the form
- `ReduxDevTools` â for your emerging [time traveling](https://github.com/gaearon/redux-devtools) needs
- `GoogleDrive`, `Dropbox`, `Instagram`, `Url` â select files from [Google Drive](https://www.google.com/drive/), [Dropbox](https://www.dropbox.com/), [Instagram](https://www.instagram.com/) and direct urls from anywhere on the web. Note that[`uppy-server`](https://github.com/transloadit/uppy-server) is needed for these.
- `Webcam` â snap and record those selfies ð·
## Browser Support
<a href="https://saucelabs.com/u/transloadit-uppy">
<img src="https://saucelabs.com/browser-matrix/transloadit-uppy.svg" alt="Sauce Test Status"/>
</a>
We aim to support IE10+ and recent versions of Safari, Edge, Chrome, Firefox, and Opera.
## FAQ
### Why not just use `<input type="file">`?
Having no JavaScript beats having a lot of it, so thatâs a fair question! Running an uploading & encoding business for ten years though we found that in cases, the file input leaves some to be desired:
- We received complaints about broken uploads and found that resumable uploads are important, especially for big files and to be inclusive towards people on poorer connections (we also launched [tus.io](https://tus.io) to attack that problem). Uppy uploads can survive network outages and browser crashes or accidental navigate-aways.
- Uppy supports editing meta information before uploading (and e.g. cropping is planned).
- Thereâs the situation where people are using their mobile devices and want to upload on the go, but they have their picture on Instagram, files in Drop
没有合适的资源?快使用搜索试试~ 我知道了~
uppy下一代浏览器Web文件上传组件
共1335个文件
png:907个
js:146个
md:56个
需积分: 10 2 下载量 165 浏览量
2019-08-10
02:17:47
上传
评论
收藏 171.21MB ZIP 举报
温馨提示
uppy:下一代浏览器Web文件上传组件
资源推荐
资源详情
资源评论
收起资源包目录
uppy下一代浏览器Web文件上传组件 (1335个子文件)
super-dog-2.ai 1.08MB
.babelrc 204B
.babelrc 35B
bootandkill-servers 3KB
build-css 325B
CNAME 8B
uppy.code-workspace 493B
app.css 426B
app.css 105B
app.css 0B
app.css 0B
app.css 0B
app.css 0B
.editorconfig 270B
layout.ejs 5KB
index.ejs 4KB
index.ejs 4KB
example.ejs 2KB
stats.ejs 2KB
index.ejs 2KB
sidebar.ejs 1KB
post.ejs 1KB
blog.ejs 1KB
page.ejs 1023B
social.ejs 1019B
main_menu.ejs 864B
index.ejs 843B
uppy.ejs 693B
index.ejs 667B
index.ejs 561B
index.ejs 555B
comments.ejs 549B
ga.ejs 446B
community_dropdown.ejs 440B
index.ejs 377B
api-usage-example.ejs 348B
frontpage-code-sample.ejs 259B
stats.ejs 114B
.empty 0B
.empty 0B
endtoend-build 343B
app.es6 2KB
app.es6 2KB
app.es6 841B
app.es6 605B
app.es6 445B
app.es6 0B
.eslintignore 314B
.eslintrc 264B
no-idea-dog-1.gif 8.16MB
no-idea-dog-2.gif 3.28MB
catch-fail-2.gif 2.82MB
uppy-demo2.mov.gif 2.81MB
puppy-rescue.gif 1.9MB
catch-fail-1.gif 1.76MB
uppy-demo.gif 1.65MB
no-idea-dog-3.gif 1.29MB
.gitignore 329B
.gitignore 49B
.gitignore 42B
.gitignore 36B
.gitignore 35B
.gitignore 13B
.gitignore 13B
.gitignore 13B
.gitignore 13B
disc.html 244KB
app.html 3KB
frontpage-code-sample.html 1KB
index.html 999B
index.html 972B
app.html 955B
index.html 910B
index.html 846B
index.html 719B
index.html 660B
index.html 591B
app.html 555B
index.html 460B
app.html 425B
app.html 389B
index.html 318B
index.html 305B
index.html 303B
index.html 300B
app.html 218B
app.html 198B
instagram-ui.jpg 271KB
uppy-team.jpg 252KB
uppy-team-kong.jpg 212KB
uppy-dashboard-oct-2016-2.jpg 146KB
uppy-dashboard-ui.jpg 140KB
import-from-camera.jpg 136KB
upload-resume.jpg 128KB
uppy-dashboard-updated.jpg 124KB
info-upload-success.jpg 123KB
uppy-dashboard-browser.jpg 122KB
upload-pause.jpg 119KB
dashboard-sep-27-2016.jpg 109KB
uppy-screenshot.jpg 109KB
共 1335 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
资源评论
weixin_39840588
- 粉丝: 448
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功