You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
2.1 KiB
58 lines
2.1 KiB
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<div id="fileupload">
|
|
|
|
<div id="html5">
|
|
<div class="clear"></div>
|
|
|
|
<form action="/upload" method="POST" enctype="multipart/form-data">
|
|
<div id="file-uploader" style="min-width: 400px;">
|
|
<br />
|
|
<input type="file" name="file" id="file_upload" name="file"><br/ ><br/ >
|
|
<input id ="upload_btn" type="submit" value="Upload">
|
|
<br /><br />
|
|
</div>
|
|
|
|
<div id="choices">
|
|
<div id="expiry">
|
|
<label>File expiry:
|
|
<select name="expires" id="expires" onchange="uploader.setParams({expires: $('#expires').val(), randomize: $('#randomize').is(':checked')})">
|
|
</label>
|
|
<option value="0">never</option>
|
|
<option value="60">a minute</option>
|
|
<option value="300">5 minutes</option>
|
|
<option value="3600">an hour</option>
|
|
<option value="86400">a day</option>
|
|
<option value="604800">a week</option>
|
|
<option value="2419200">a month</option>
|
|
<option value="29030400">a year</option>
|
|
</select>
|
|
</div>
|
|
|
|
<label><input name="randomize" id="randomize" type="checkbox" checked onclick="uploader.setParams({expires: $('#expires').val(), randomize: $('#randomize').is(':checked')})" /> Randomize filename</label>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
function downloadJSAtOnload() {
|
|
var element = document.createElement("script");
|
|
element.src = "/static/js/cat.js";
|
|
document.body.appendChild(element);
|
|
}
|
|
if (window.addEventListener)
|
|
window.addEventListener("load", downloadJSAtOnload, false);
|
|
else if (window.attachEvent)
|
|
window.attachEvent("onload", downloadJSAtOnload);
|
|
else window.onload = downloadJSAtOnload;
|
|
</script>
|
|
|
|
{% endblock %}
|