The ActiveStorage Upload plugin handles Ruby on Rails ActiveStorage direct uploads with Uppy.
const Uppy = require('@uppy/core')
const ActiveStorageUpload = require('uppy-activestorage-upload')
const uppy = Uppy()
uppy.use(ActiveStorageUpload, {
directUploadUrl: ... // Rails' active storage direct upload path obtained i.e. via `Rails.app.routes.url_helpers.rails_direct_uploads_path`
})
$ npm install uppy-activestorage-upload --save
We recommend installing from npm and then using a module bundler such as Webpack, Browserify or Rollup.js.