2015-09-24 01:44:49 -04:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2015-09-30 23:37:00 -04:00
|
|
|
{% block head %}
|
2015-10-30 18:36:47 -04:00
|
|
|
<link href='{{ sitepath }}static/css/dropzone.css' media='screen, projection' rel='stylesheet' type='text/css'>
|
2015-09-30 23:37:00 -04:00
|
|
|
{% endblock %}
|
2015-09-24 16:04:51 -04:00
|
|
|
|
2015-09-30 23:37:00 -04:00
|
|
|
{% block content %}
|
2015-09-24 16:04:51 -04:00
|
|
|
<div id="fileupload">
|
2015-10-30 18:36:47 -04:00
|
|
|
<form action="{{ sitepath }}upload" class="dropzone" id="dropzone" method="POST" enctype="multipart/form-data" data-maxsize="{{ maxsize }}">
|
2015-09-30 23:37:00 -04:00
|
|
|
<div class="fallback">
|
2015-10-08 00:19:22 -04:00
|
|
|
<input id="fileinput" name="file" type="file" /><br />
|
|
|
|
<input id="submitbtn" type="submit" value="Upload">
|
2015-09-30 23:37:00 -04:00
|
|
|
</div>
|
|
|
|
|
2015-10-01 12:46:34 -04:00
|
|
|
<div id="dzone" class="dz-default dz-message">
|
2015-09-30 23:37:00 -04:00
|
|
|
<span>Click or Drop file(s)</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="choices">
|
|
|
|
<div id="expiry">
|
|
|
|
<label>File expiry:
|
|
|
|
<select name="expires" id="expires">
|
|
|
|
<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>
|
2015-10-04 03:14:21 -04:00
|
|
|
</label>
|
2015-09-24 16:04:51 -04:00
|
|
|
</div>
|
2015-09-30 23:37:00 -04:00
|
|
|
<label><input name="randomize" id="randomize" type="checkbox" checked /> Randomize filename</label>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</form>
|
|
|
|
<div id="uploads"></div>
|
2015-10-04 17:13:29 -04:00
|
|
|
<div class="clear"></div>
|
2015-09-24 16:04:51 -04:00
|
|
|
</div>
|
2015-09-25 00:58:38 -04:00
|
|
|
|
2015-10-30 18:36:47 -04:00
|
|
|
<script src="{{ sitepath }}static/js/dropzone.js"></script>
|
|
|
|
<script src="{{ sitepath }}static/js/upload.js"></script>
|
2015-10-04 03:14:21 -04:00
|
|
|
{% endblock %}
|