Permalink
Switch branches/tags
Nothing to show
Find file
92acdb1 Mar 22, 2012
29 lines (27 sloc) 1016 Bytes
<!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>