2015-09-24 07:44:49 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2015-09-24 22:04:51 +02:00
|
|
|
{% 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;">
|
2015-09-25 06:58:38 +02:00
|
|
|
<br />
|
|
|
|
<input type="file" name="file" id="file_upload" name="file"><br/ ><br/ >
|
|
|
|
<input id ="upload_btn" type="submit" value="Upload">
|
|
|
|
<br /><br />
|
2015-09-24 22:04:51 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="choices">
|
|
|
|
<div id="expiry">
|
|
|
|
<label>File expiry:
|
2015-09-28 06:25:57 +02:00
|
|
|
<select name="expires" id="expires" onchange="uploader.setParams({expires: $('#expires').val(), randomize: $('#randomize').is(':checked')})">
|
2015-09-24 22:04:51 +02:00
|
|
|
</label>
|
2015-09-28 06:25:57 +02:00
|
|
|
<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>
|
2015-09-24 22:04:51 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
2015-09-28 06:25:57 +02:00
|
|
|
<label><input name="randomize" id="randomize" type="checkbox" checked onclick="uploader.setParams({expires: $('#expires').val(), randomize: $('#randomize').is(':checked')})" /> Randomize filename</label>
|
2015-09-24 22:04:51 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-25 06:58:38 +02:00
|
|
|
|
|
|
|
<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>
|
|
|
|
|
2015-09-24 22:04:51 +02:00
|
|
|
{% endblock %}
|