File tree Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Expand file tree Collapse file tree 3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments