blob: d790e643720f1444723c1c0e0c0a765510de98c3 (
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
|
<html>
<head>
<title>Upload Example</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>
<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>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="./js/upload.js"></script>
</body>
</html>
|