github-actions[bot] 49fa351b78 Release: uppy@3.21.0 (#4823) 1 year ago
..
src eb8a806908 fix uploadRemoteFile undefined (#4814) 1 year ago
types 34c78e9093 meta: run Prettier on existing files (#4713) 1 year ago
CHANGELOG.md 49fa351b78 Release: uppy@3.21.0 (#4823) 1 year ago
LICENSE ac07bcf0cb Move `ProviderView` to `@uppy/provider-views`. 6 years ago
README.md e054a25ab2 @uppy/provider-views: add support for remote file paths (#4537) 1 year ago
package.json 49fa351b78 Release: uppy@3.21.0 (#4823) 1 year ago

README.md

@uppy/provider-views

npm version CI status for Uppy tests CI status for Companion tests CI status for browser tests

View library for Uppy remote provider plugins.

Uppy is being developed by the folks at Transloadit, a versatile file encoding service.

Example

import Plugin from '@uppy/core/lib/plugin'
import { ProviderViews } from '@uppy/provider-views'

class GoogleDrive extends UIPlugin {
  install () {
    this.view = new ProviderViews(this)
    // snip
  }

  onFirstRender () {
    return Promise.all([
      this.provider.fetchPreAuthToken(),
      this.view.getFolder('root'),
    ])
  }

  render (state) {
    return this.view.render(state)
  }
}

Installation

Unless you are creating a custom provider plugin, you do not need to install this.

$ npm install @uppy/provider-views

License

The MIT License.