uppy/examples/xhr-bundle/main.js
2018-07-15 23:58:22 -04:00

20 lines
381 B
JavaScript

const Uppy = require('@uppy/core')
const Dashboard = require('@uppy/dashboard')
const XHRUpload = require('@uppy/xhr-upload')
const uppy = Uppy({
debug: true
})
uppy.use(Dashboard, {
target: '#app',
inline: true,
hideRetryButton: true,
hideCancelButton: true
})
uppy.use(XHRUpload, {
bundle: true,
endpoint: 'http://localhost:9967/upload',
fieldName: 'files'
})