-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Examples update #1389
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d3e6702
add node xhr example
samuelayo 41ee14d
add python example with flask
samuelayo b9a0fe7
change example name
samuelayo d294498
change example name for node and commit node
samuelayo 64b7f78
update readme
samuelayo 8ee50e4
Add PHP example, also update node example to log out
samuelayo b2f467a
Update index.html
samuelayo 2b65ff2
Merge branch 'master' into examples_update
samuelayo 8c20298
Update upload.php
samuelayo 39af08c
Change if/else to try catch
samuelayo 1601171
update header for allow headers
samuelayo 2ad6f52
Update upload.php
samuelayo d1e621c
create uploads folder, use uppy css from the bundle
arturi eb1597f
change from bundle to node_modules
samuelayo 1e79a6d
Merge branch 'master' into examples_update
samuelayo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ | ||
uppy.min.css |
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>Python + 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> |
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.php' | ||
}) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add an upload directory, like
form.uploadDir = "./uploads"
? Otherwise I ran this on mac and couldn’t figure out where the files went. And maybe also preserve the extension. So:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could add some logging, too, like here: https://stackoverflow.com/a/46973498
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the upload dir and the logging. Also added one more example for PHP