mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 10:47:44 +00:00
22 lines
440 B
JavaScript
22 lines
440 B
JavaScript
const Uppy = require('@uppy/core')
|
|
const Dashboard = require('@uppy/dashboard')
|
|
const XHRUpload = require('@uppy/xhr-upload')
|
|
|
|
const uppy = 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',
|
|
metaFields: ['something'],
|
|
fieldName: 'files'
|
|
})
|