36fa6598a8
- index.html extended with form input - pasta.html and pastalist.html show link to /file/{pasta.id}/{filename} path - files are saved in pasta_data folder - all data is now stored in pasta_data/database.json - changed pastalist.html date format to exclude year - added custom 404 error handler
27 lines
1,011 B
HTML
27 lines
1,011 B
HTML
{% include "header.html" %}
|
|
<form action="upload" method="POST" enctype="multipart/form-data">
|
|
<br>
|
|
<label for="expiration">Expiration</label><br>
|
|
<select style="width: 100%;" name="expiration" id="expiration">
|
|
<optgroup label="Expire">
|
|
<option value="1min">1 minute</option>
|
|
<option value="10min">10 minutes</option>
|
|
<option value="1hour">1 hour</option>
|
|
<option selected value="24hour">24 hours</option>
|
|
<option value="1week">1 week</option>
|
|
</optgroup>
|
|
<option value="never">Never Expire</option>
|
|
</select>
|
|
<br>
|
|
<label>Content</label>
|
|
<br>
|
|
<textarea style="width: 100%; min-height: 100px" name="content" autofocus></textarea>
|
|
<br>
|
|
<label>File attachment</label>
|
|
<br>
|
|
<input style="width: 100%;" type="file" id="file" name="file">
|
|
<br>
|
|
<input style="width: 120px; background-color: limegreen" ; type="submit" value="Save"/>
|
|
<br>
|
|
</form>
|
|
{% include "footer.html" %}
|