-
Notifications
You must be signed in to change notification settings - Fork 1
/
upload_image.html
87 lines (66 loc) · 2.77 KB
/
upload_image.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Bootstrap</title>
<!-- HEAD SECTION -->
<!-- IE Edge Meta Tag -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Optional Theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<!-- Optional IE8 Support -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link async rel="stylesheet" type = "text/css" href = "picbuttons.css">
<!-- The following file can be useful for overriding Bootstrap's styles -->
<link rel="stylesheet" href="contentful_overrides.css">
<script type="text/javascript" src="scripts/bundle.js"></script>
</head>
<body>
<center>
<!--Take Pictures-->
<p> TAKE PICTURES</p>
<form action="https://s3.amazonaws.com/ash-tree-photos" method="post" enctype="multipart/form-data">
<input type="hidden" name="key" value="uploads/${filename}">
<p> <div class="image-upload">
<label for="treefile">
<img src="resources/images/tree.jpg" alt="Leaf" align="middle" width="60%" style="cursor:pointer;">
</label>
<input id="treefile" type="file" accept="image/*" name="file" >
</div></p>
<p> <div class="image-upload">
<label for="leaffile">
<img src="resources/images/Leaf.jpg" alt="Leaf" align="middle" width="60%" style="cursor:pointer;">
</label>
<input id="leaffile" type="file" accept="image/*" name="leaf">
</div></p>
<p> <div class="image-upload">
<label for="barkfile">
<img src="resources/images/bark.jpg" alt="Tree" align="middle" height="100px" style="cursor:pointer;">
</label>
<input id="barkfile" type="file" accept="image/*" name="bark">
</div></p>
<!--Exit Form Button-->
<button type="button" id="upload" class="btn btn-primary" value="All done">
All done
</button>
</form>
<button class="btn btn-default" style="margin-top:10px">
<a href="index.html">Back</a>
</button>
</center>
<!-- FOOTER SECTION - Before closing </body> tag -->
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- My custom js -->
<script src="contentful_script.js"></script>
</body>
</html>