-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
28 lines (27 loc) · 1016 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>UploadKit Demo</title>
<link rel="stylesheet" type="text/css" href="externals/bootstrap/docs/assets/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="uploadkit.css"/>
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript" src="externals/plupload/js/plupload.full.js"></script>
<script type="text/javascript" src="uploadkit.js"></script>
<script type="text/javascript">
$(function() {
$('.uk-input').bind(UKEventType.FileUploaded, function(evt) {
console.log(evt.response);
});
});
</script>
</head>
<body>
<form method="post" action="#">
<!-- Multi-file uploader -->
<input type="file" class="uk-input" name="attachments" multiple="multiple" data-upload-url="./" data-max-file-size="100mb"/>
<!-- Single-file uploader -->
<input type="file" class="uk-input" name="avatar" data-upload-url="./" data-max-file-size="10mb"/>
</form>
</body>
</html>