1
0
Fork
You've already forked lightfile
0
Lightfile is an easy way to upload and download files.
  • JavaScript 46.4%
  • Python 18.3%
  • HTML 17.9%
  • CSS 17.4%
Find a file
2022年11月14日 16:46:52 +01:00
static Some optimizations 2022年06月18日 07:03:27 +00:00
.gitignore Big update (see commit description) 2022年06月11日 17:56:50 +00:00
app.py Big update (see commit description) 2022年06月11日 17:56:50 +00:00
client.html Some optimizations 2022年06月18日 07:03:27 +00:00
config.sample.py Big update (see commit description) 2022年06月11日 17:56:50 +00:00
LICENSE First commit 2022年06月06日 09:22:53 +00:00
README.md „README.md" ändern 2022年11月14日 16:46:52 +01:00
requirements.txt First commit 2022年06月06日 09:22:53 +00:00
screenshot.png Edit README.md 2022年06月07日 13:59:23 +00:00

lightfile

Lightfile is an easy way to upload and download files. The goal is a simple and fast web application that allows to retrieve and upload files.

A public instance is hosted here: https://upload.odirf.de/

How it works

When uploading, the file is saved in a folder. The file name contains the file extension(s) and a generated token instead of the file name. The file can then be retrieved (using the token+file extension(s).

Note: The file extension is saved with the file because lightfile does not use a database and the mimetype can thus be recognized by the browser automatically.

Set up

  1. First clone this repository
  2. Install the requirements with python3 -m pip install -Ur requirements.txt
  3. Copy and edit the configuration: cp config.sample.py config.py
  4. Create the file location directory
  5. Run the server with python3 app.py

License

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.