main.js 365 B

123456789101112131415161718
  1. import Uppy from '@uppy/core'
  2. import Dashboard from '@uppy/dashboard'
  3. import AwsS3 from '@uppy/aws-s3'
  4. import '@uppy/core/dist/style.css'
  5. import '@uppy/dashboard/dist/style.css'
  6. const uppy = new Uppy({
  7. debug: true,
  8. })
  9. uppy.use(Dashboard, {
  10. inline: true,
  11. target: 'body',
  12. })
  13. // No client side changes needed!
  14. uppy.use(AwsS3, { companionUrl: '/companion' })