32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
|
{% extends 'layout.html' %}
|
||
|
{% block content %}
|
||
|
<div class="container">
|
||
|
{% include 'nav.html' %}
|
||
|
{# check flashes #}
|
||
|
{% with messages = get_flashed_messages() %}
|
||
|
{% if messages %}
|
||
|
{% for message in messages %}
|
||
|
<div class="alert">{{ message }}</div>
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% endwith %}
|
||
|
<form action="/upload" method="post" enctype="multipart/form-data">
|
||
|
<input type="file" name="file" id="file" class="file">
|
||
|
<br>
|
||
|
<label for="expiry">Expire in:</label>
|
||
|
<select name="expiry" id="expiry">
|
||
|
<option value="60">1 minute</option>
|
||
|
<option value="10">10 secs</option>
|
||
|
<option value="300">5 minutes</option>
|
||
|
<option value="600">10 minutes</option>
|
||
|
<option value="3600" selected>1 hour</option>
|
||
|
<option value="86400">1 day</option>
|
||
|
<option value="259200">3 days</option>
|
||
|
<option value="604800">1 week</option>
|
||
|
<option value="2147483647">Forever</option>
|
||
|
</select>
|
||
|
<button class="upload-button">Upload</button><br> max file size: 134mb (temporary), 32mb (forever)
|
||
|
</form>
|
||
|
</div>
|
||
|
{% endblock %}
|