Simple temporary file hosting solution, powered by Django.
Page design based on Uguu.
Please install Python 3.x and pip if you don't have them already.
First install the dependencies:
sudo pip3 install django django-qr-code python-magic
Start the server:
git clone https://github.com/izq/kanji.git
unzip kanji.git
cd kanji
python3 manage.py migrate --run-syncdb
python3 manage.py runserver
And setup a cron job (crontab -e) to delete uploaded files older than 24 hours :
*/5 * * * * root /home/izq/kanji/check.sh
Most of the variables you may want to customize are located in /kanji/settings.py
BANNED_MIMETYPES = ["text/html", "application/x-msdownload", "application/x-ms-installer", "application/x-elf"]
MAX_SIZE = 104857600
WEBSITE_ROOT = "http://127.0.0.1:8000"
MAX_SIZE is the maximum file size, i.e 100MB.
WEBSITE_ROOT is the domain name used to generate the URL that is returned to the user.