mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-21 09:18:45 +00:00
- uppy@0.26.0 - @uppy/aws-s3-multipart@0.26.0 - @uppy/aws-s3@0.26.0 - @uppy/core@0.26.0 - @uppy/dashboard@0.26.0 - @uppy/drag-drop@0.26.0 - @uppy/dropbox@0.26.0 - @uppy/file-input@0.26.0 - @uppy/form@0.26.0 - @uppy/golden-retriever@0.26.0 - @uppy/google-drive@0.26.0 - @uppy/informer@0.26.0 - @uppy/instagram@0.26.0 - @uppy/progress-bar@0.26.0 - @uppy/provider-views@0.26.0 - @uppy/react@0.26.0 - @uppy/redux-dev-tools@0.26.0 - @uppy/server-utils@0.26.0 - @uppy/status-bar@0.26.0 - @uppy/store-default@0.26.0 - @uppy/store-redux@0.26.0 - @uppy/thumbnail-generator@0.26.0 - @uppy/transloadit@0.26.0 - @uppy/tus@0.26.0 - @uppy/url@0.26.0 - @uppy/utils@0.26.0 - @uppy/webcam@0.26.0 - @uppy/xhr-upload@0.26.0 |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
@uppy/server-utils
Client library for communication with Uppy Server. Intended for use in Uppy plugins.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Example
const Uppy = require('@uppy/core')
const { Provider, RequestClient, Socket } = require('@uppy/server-utils')
const uppy = Uppy()
const client = new RequestClient(uppy, { serverUrl: 'https://uppy.mywebsite.com/' })
client.get('/drive/list').then(() => {})
const provider = new Provider(uppy, {
serverUrl: 'https://uppy.mywebsite.com/',
provider: providerPluginInstance
})
provider.checkAuth().then(() => {})
const socket = new Socket({ target: 'wss://uppy.mywebsite.com/' })
socket.on('progress', () => {})
Installation
Unless you are writing a custom provider plugin, you do not need to install this.
$ npm install @uppy/server-utils --save