Son aktif 1731091952

Revizyon d84459f391f74ca0e8df445a6209e26129dd649d

Uppy-1.js Ham
1import Uppy from '@uppy/core'
2import Dashboard from '@uppy/dashboard'
3import RemoteSources from '@uppy/remote-sources'
4import ImageEditor from '@uppy/image-editor'
5import Webcam from '@uppy/webcam'
6import Tus from '@uppy/tus'
7
8const uppy = new Uppy()
9 .use(Dashboard, { trigger: '#select-files' })
10 .use(RemoteSources, { companionUrl: 'https://companion.uppy.io' })
11 .use(Webcam)
12 .use(ImageEditor)
13 .use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
14 .on('complete', (result) => {
15 console.log('Upload result:', result)
16 })