- JavaScript 46.4%
- Python 18.3%
- HTML 17.9%
- CSS 17.4%
| static | Some optimizations | |
| .gitignore | Big update (see commit description) | |
| app.py | Big update (see commit description) | |
| client.html | Some optimizations | |
| config.sample.py | Big update (see commit description) | |
| LICENSE | First commit | |
| README.md | „README.md" ändern | |
| requirements.txt | First commit | |
| screenshot.png | Edit README.md | |
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
- First clone this repository
- Install the requirements with
python3 -m pip install -Ur requirements.txt - Copy and edit the configuration:
cp config.sample.py config.py - Create the file location directory
- 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.