mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-20 01:55:09 +00:00
add xhr-upload endpoint for dev testing
This commit is contained in:
parent
6e4dd8512b
commit
dfb6fe9bd7
1 changed files with 3 additions and 0 deletions
|
|
@ -6,9 +6,11 @@ const GoogleDrive = require('./../../packages/@uppy/google-drive/src')
|
|||
const Url = require('./../../packages/@uppy/url/src')
|
||||
const Webcam = require('./../../packages/@uppy/webcam/src')
|
||||
const Tus = require('./../../packages/@uppy/tus/src')
|
||||
// const XHRUpload = require('./../../packages/@uppy/xhr-upload/src')
|
||||
const Form = require('./../../packages/@uppy/form/src')
|
||||
|
||||
const TUS_ENDPOINT = 'https://master.tus.io/files/'
|
||||
// const XHR_ENDPOINT = 'https://api2.transloadit.com'
|
||||
|
||||
const uppy = Uppy({
|
||||
debug: true,
|
||||
|
|
@ -35,6 +37,7 @@ const uppy = Uppy({
|
|||
.use(Url, { target: Dashboard, serverUrl: 'http://localhost:3020' })
|
||||
.use(Webcam, { target: Dashboard })
|
||||
.use(Tus, { endpoint: TUS_ENDPOINT })
|
||||
// .use(XHRUpload, { endpoint: XHR_ENDPOINT })
|
||||
.use(Form, { target: '#upload-form' })
|
||||
// .use(GoldenRetriever, {serviceWorker: true})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue