-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1389 from transloadit/examples_update
Examples update
- Loading branch information
Showing
24 changed files
with
11,354 additions
and
27,206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
uppy.min.css | ||
uploads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
}) |
Oops, something went wrong.