blob: 57d8ea09cb816831bda0a904ecd196b58c5ac5d2 (
plain)
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
|
<!DOCTYPE html>
<head>
<title>fatalhalt file upload</title>
<style type="text/css" media="screen">
#progress {
width: 500px;
border: 1px solid black;
position: relative;
padding: 3px;
}
#percent {
position: absolute;
left: 50%;
}
#bar {
height: 20px;
background-color: green;
width: 0%;
}
</style>
</head>
<body>
<img src="./img/nyancat.gif" width="200px" height="140px" />
<h1>Upload File</h1>
<form id="uploadForm"
enctype="multipart/form-data"
action="/api/upload"
method="post">
<input type="file" id="userFileInput" name="userFile"/>
</form>
<span id="status"></span>
<div id="progress">
<span id="percent">0%</span>
<div id="bar"></div>
</div>
<div id="uploadedlist" style="padding-top: 20px">
<h2>Uploaded Files</h2>
<span id="filenames">
</span>
</div>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="./js/upload.js"></script>
</body>
</html>
|