uppy/examples/xhr-bundle/main.js
Prakash a25226aab2
Fix @uppy/examples (#6099)
we forgot to update the examples after #5830
2025-12-08 09:48:23 +01:00

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',
})