main.js 605 B

123456789101112131415161718192021222324252627
  1. import AwsS3 from '@uppy/aws-s3'
  2. import Uppy from '@uppy/core'
  3. import Dashboard from '@uppy/dashboard'
  4. import GoogleDrive from '@uppy/google-drive'
  5. import Webcam from '@uppy/webcam'
  6. import '@uppy/core/dist/style.css'
  7. import '@uppy/dashboard/dist/style.css'
  8. import '@uppy/webcam/dist/style.css'
  9. const uppy = new Uppy({
  10. debug: true,
  11. autoProceed: false,
  12. })
  13. uppy.use(GoogleDrive, {
  14. companionUrl: 'http://localhost:3020',
  15. })
  16. uppy.use(Webcam)
  17. uppy.use(Dashboard, {
  18. inline: true,
  19. target: 'body',
  20. plugins: ['GoogleDrive', 'Webcam'],
  21. })
  22. uppy.use(AwsS3, {
  23. companionUrl: 'http://localhost:3020',
  24. })