Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples update #1389

Merged
merged 15 commits into from
Apr 19, 2019
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/node-xhr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uppy.min.css
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="https://transloadit.edgly.net/releases/uppy/v0.30.3/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