mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
25 lines
513 B
JavaScript
25 lines
513 B
JavaScript
import Uppy from '@uppy/core'
|
|
import Dashboard from '@uppy/dashboard'
|
|
import XHRUpload from '@uppy/xhr-upload'
|
|
|
|
import '@uppy/core/css/style.css'
|
|
import '@uppy/dashboard/css/style.css'
|
|
|
|
const uppy = new Uppy({
|
|
debug: true,
|
|
meta: { something: 'xyz' },
|
|
})
|
|
|
|
uppy.use(Dashboard, {
|
|
target: '#app',
|
|
inline: true,
|
|
hideRetryButton: true,
|
|
hideCancelButton: true,
|
|
})
|
|
|
|
uppy.use(XHRUpload, {
|
|
bundle: true,
|
|
endpoint: 'http://localhost:9967/upload',
|
|
allowedMetaFields: ['something'],
|
|
fieldName: 'files',
|
|
})
|