Add the upload only option.
This commit is contained in:
parent
47ac321d62
commit
d85637afcb
4 changed files with 103 additions and 50 deletions
|
@ -1,31 +1,35 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="{{ url_for('static', path='/css/files.css') }}" rel="stylesheet">
|
||||
<title>UpFast: File List</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ url_for('static', path='/css/files.css') }}" rel="stylesheet" />
|
||||
<title>UpFast: File List</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>File List</h1>
|
||||
|
||||
{% for file in files %}
|
||||
<hr>
|
||||
<div class="file">
|
||||
{% if file.fileType == "image" %}
|
||||
<img src="/files/{{ file.name }}">
|
||||
{% elif file.fileType == "video" %}
|
||||
<video controls src="/files/{{ file.name }}"></video>
|
||||
{% elif file.fileType == "text" %}
|
||||
<pre>{{ file.content }}</pre>
|
||||
{% endif %}
|
||||
<div class="info">
|
||||
<a href="/files/{{ file.name }}" download>{{ file.name }}</a>
|
||||
<a href="/delete/{{ file.name }}" onclick="return confirm('Are you sure?')">delete!</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
<h1>File List</h1>
|
||||
|
||||
{% for file in files %}
|
||||
<hr />
|
||||
<div class="file">
|
||||
{% if file.fileType == "image" %}
|
||||
<img src="/files/{{ file.name }}" />
|
||||
{% elif file.fileType == "video" %}
|
||||
<video controls src="/files/{{ file.name }}"></video>
|
||||
{% elif file.fileType == "text" %}
|
||||
<pre>{{ file.content }}</pre>
|
||||
{% endif %}
|
||||
<div class="info">
|
||||
<a href="/files/{{ file.name }}" download>{{ file.name }}</a>
|
||||
{% if not upload_only %}
|
||||
<a href="/delete/{{ file.name }}" onclick="return confirm('Are you sure?')">delete!</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,26 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="{{ url_for('static', path='/css/style.css') }}" rel="stylesheet">
|
||||
<title>UpFast</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link href="{{ url_for('static', path='/css/style.css') }}" rel="stylesheet" />
|
||||
<title>UpFast</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>UpFast: Minimal file upload and sharing tool</h1>
|
||||
<h1>UpFast: Minimal file upload and sharing tool</h1>
|
||||
|
||||
<p><a href="https://0x0.st">0x0.st</a> Influenced file upload and sharing tool</p>
|
||||
<p>
|
||||
<a href="https://0x0.st">0x0.st</a> Influenced file upload and sharing
|
||||
tool
|
||||
</p>
|
||||
|
||||
<p>To upload files use curl: <code>curl -F "file=@/path/to/file" "{{ request.url }}"</code></p>
|
||||
<p>
|
||||
To upload files use curl:
|
||||
<code>curl -F "file=@/path/to/file" "{{ request.url }}"</code>
|
||||
</p>
|
||||
|
||||
<p>To delete a file using curl: <code>curl "{{ request.url }}delete/file_name"</code></p>
|
||||
<p>
|
||||
To delete a file using curl:
|
||||
<code>curl "{{ request.url }}delete/file_name"</code>
|
||||
</p>
|
||||
|
||||
<p>To get of all files hosted on the instance check <a href="/files">files</a></p>
|
||||
{% if upload_only %}
|
||||
<p>
|
||||
NOTE: This is an upload only instance, if you wan't a file on the instance
|
||||
deleted ask the hoster to delete the file.
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<p>Created and maintained by <a href="https://cronyakatsuki.xyz">Crony Akatsuki</a></p>
|
||||
<p>
|
||||
To get of all files hosted on the instance check
|
||||
<a href="/files">files</a>
|
||||
</p>
|
||||
|
||||
<p>Code is hosted on <a href="https://code.cronyakatsuki.xyz/crony/upfast">https://code.cronyakatsuki.xyz/crony/upfast</a></p>
|
||||
<p>
|
||||
Created and maintained by
|
||||
<a href="https://cronyakatsuki.xyz">Crony Akatsuki</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Code is hosted on
|
||||
<a href="https://code.cronyakatsuki.xyz/crony/upfast">https://code.cronyakatsuki.xyz/crony/upfast</a>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue