Skip to content

Commit 5647cdb

Browse files
committed
updated example
1 parent a44da72 commit 5647cdb

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

example/index.html

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33
<head>
44
<meta charset="utf-8" />
55
<title></title>
6+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.3.0/min/dropzone.min.css"/>
67
</head>
78
<body>
8-
<div>Click to Upload Image</div>
9-
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
10-
<script src="https://rawgit.com/firstandthird/file-uploader/master/dist/file-uploader.full.js
11-
"></script>
12-
<script>
13-
$('div').fileUploader({
14-
action: '/upload?width=50&height=50&x=50&y=50&quality=50',
15-
postKey: 'file'
16-
});
17-
</script>
9+
<form action="/upload" class="dropzone" id="my-awesome-dropzone"></form>
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.3.0/min/dropzone.min.js"></script>
1811
</body>
1912
</html>

example/server.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ server.register([
99
{
1010
register: require('../'),
1111
options: {
12-
imagemagick: true,
13-
maxBytes: 30000
12+
maxBytes: 30000,
13+
profile: process.env.AWS_PROFILE,
14+
bucket: process.env.AWS_BUCKET
1415
}
1516
}
1617
], (err) => {

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
"hapi": "16.1.0"
1616
},
1717
"dependencies": {
18+
"aug": "^1.0.2",
1819
"boom": "4.2.0",
1920
"joi": "10.2.1",
20-
"s3put": "2.0.0"
21+
"s3put": "3.1.0"
2122
}
2223
}

0 commit comments

Comments
 (0)