Thanks AB49K

merge-requests/5/merge
Volkor 1 year ago
parent 24bd9e85f3
commit 46f6296d86
No known key found for this signature in database
GPG Key ID: BAD7CA8A81CC2DA5
  1. 1
      run.py
  2. 16
      theme/templates/link.html

@ -256,7 +256,6 @@ def delete_file_key(deletekey):
@app.route('/error/<int:error>')
def nginx_error(error):
# out here doing 2iq plays because https://www.python.org/dev/peps/pep-0634/ isn't ready.
if error == 413:
return error_page(error="The file you uploaded was too large for the server to handle.", code=413), 413
elif error == 403: # Block IPs with your web server and return /error/403 for this page

@ -1,11 +1,11 @@
{% extends "shell.html" %}
{% block body %}
<h1 class="title">
Here's your link:
</h1>
<p style="text-align: center;">
<a class="fileLink" href="{{ data.url }}">{{ data.url }}</a><br>
<br>
<a style="color:darkred;" class="fileLink" href="{{ data.deletionurl }}">{{ data.deletionurl }}</a>
</p>
<h1 class="title">
Jobs Done! Here's your link:
</h1>
<p style="text-align: center;">
<input readonly class="fileLink" type="link" name="link" size="30" value="{{ data.url }}" autofocus="autofocus" onfocus="this.select()" onmouseover='this.select()'>
<br><br>
<input readonly class="fileLink" type="link" name="deletionlink" size="45" value="{{ data.deletionurl }}" onmouseover='this.select()'>
</p>
{% endblock %}

Loading…
Cancel
Save