Skip to content

Commit

Permalink
Merge pull request #1389 from transloadit/examples_update
Browse files Browse the repository at this point in the history
Examples update
  • Loading branch information
arturi authored Apr 19, 2019
2 parents d321be0 + 1e79a6d commit 3a2dca2
Show file tree
Hide file tree
Showing 24 changed files with 11,354 additions and 27,206 deletions.
2 changes: 2 additions & 0 deletions examples/node-xhr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
uppy.min.css
uploads
12 changes: 12 additions & 0 deletions examples/node-xhr/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Node.js + Uppy Example</title>
<link href="uppy.min.css" rel="stylesheet">
</head>
<body>
<script src="bundle.js"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions examples/node-xhr/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const Uppy = require('@uppy/core')
const Webcam = require('@uppy/webcam')
const Dashboard = require('@uppy/dashboard')
const xhr = require('@uppy/xhr-upload')

const uppy = Uppy({
debug: true,
autoProceed: false
})

uppy.use(Webcam)
uppy.use(Dashboard, {
inline: true,
target: 'body',
plugins: ['Webcam']
})
uppy.use(xhr, {
endpoint: 'http://localhost:3020/upload'
})
Loading

0 comments on commit 3a2dca2

Please sign in to comment.