2015-09-24 07:44:49 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2015-10-01 05:37:00 +02:00
|
|
|
{% block head %}
|
2015-10-30 23:36:47 +01:00
|
|
|
<link href='{{ sitepath }}static/css/dropzone.css' media='screen, projection' rel='stylesheet' type='text/css'>
|
2015-10-01 05:37:00 +02:00
|
|
|
{% endblock %}
|
2015-09-24 22:04:51 +02:00
|
|
|
|
2015-10-01 05:37:00 +02:00
|
|
|
{% block content %}
|
2015-09-24 22:04:51 +02:00
|
|
|
<div id="fileupload">
|
2015-10-30 23:36:47 +01:00
|
|
|
<form action="{{ sitepath }}upload" class="dropzone" id="dropzone" method="POST" enctype="multipart/form-data" data-maxsize="{{ maxsize }}">
|
2015-10-01 05:37:00 +02:00
|
|
|
<div class="fallback">
|
2015-10-08 06:19:22 +02:00
|
|
|
<input id="fileinput" name="file" type="file" /><br />
|
|
|
|
<input id="submitbtn" type="submit" value="Upload">
|
2015-10-01 05:37:00 +02:00
|
|
|
</div>
|
|
|
|
|
2015-10-01 18:46:34 +02:00
|
|
|
<div id="dzone" class="dz-default dz-message">
|
2019-01-11 18:09:54 +01:00
|
|
|
<span>Click or Drop file(s) or Paste image</span>
|
2015-10-01 05:37:00 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="choices">
|
2019-01-26 11:04:32 +01:00
|
|
|
<label>{% if not forcerandom %}<input name="randomize" id="randomize" type="checkbox" checked /> Randomize filename{% endif %}</label>
|
2015-10-01 05:37:00 +02:00
|
|
|
<div id="expiry">
|
2018-06-09 19:31:44 +02:00
|
|
|
<label>File expiry:
|
2015-10-01 05:37:00 +02:00
|
|
|
<select name="expires" id="expires">
|
2016-09-19 06:45:00 +02:00
|
|
|
{% for expiry in expirylist %}
|
|
|
|
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
|
|
|
{% endfor %}
|
2015-10-01 05:37:00 +02:00
|
|
|
</select>
|
2015-10-04 09:14:21 +02:00
|
|
|
</label>
|
2015-09-24 22:04:51 +02:00
|
|
|
</div>
|
2020-03-01 01:43:53 +01:00
|
|
|
|
|
|
|
<div>
|
|
|
|
<input type="checkbox" id="access_key_checkbox"/>
|
|
|
|
<input id="access_key" name="access_key" type="text" placeholder="Access password"/>
|
|
|
|
<label id="access_key_label"> Require password to access</label>
|
|
|
|
</div>
|
2015-10-01 05:37:00 +02:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</form>
|
|
|
|
<div id="uploads"></div>
|
2015-10-04 23:13:29 +02:00
|
|
|
<div class="clear"></div>
|
2015-09-24 22:04:51 +02:00
|
|
|
</div>
|
2015-09-25 06:58:38 +02:00
|
|
|
|
2015-10-30 23:36:47 +01:00
|
|
|
<script src="{{ sitepath }}static/js/dropzone.js"></script>
|
|
|
|
<script src="{{ sitepath }}static/js/upload.js"></script>
|
2015-10-04 09:14:21 +02:00
|
|
|
{% endblock %}
|