12345678910111213141516171819202122232425 |
- import Uppy from '@uppy/core'
- import Dashboard from '@uppy/dashboard'
- import XHRUpload from '@uppy/xhr-upload'
- import '@uppy/core/dist/style.css'
- import '@uppy/dashboard/dist/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',
- metaFields: ['something'],
- fieldName: 'files',
- })
|