mirror of
https://github.com/alvierahman90/uploadr.git
synced 2024-12-04 20:51:58 +00:00
Upload files to a server on your local network for faster and simpler file transfers across a network
cssfile-sharingfile-uploadflaskhtmlpythonpython-3qrcodeserver-clientsimpletransferuploadrweb-application
css | ||
fonts | ||
templates | ||
_config.yml | ||
.gitignore | ||
config.py | ||
LICENSE | ||
README.md | ||
requirements.txt | ||
uploadr.py |
uploadr
Upload files to a server on your local network for faster and simpler file transfers across a network.
upload from command line
curl -X POST -i -F "file=@<filepath>" host:5000/upload
config
The config file for uploadr is very simple. It should be in a class called uploadr
in a file called config.py
. It should be valid python and the two options needed are domain
and port
which are both used for the creation of QR code links. The file can also be used as the config file for
gunicorn. Here is an example below:
class uploadr:
domain = "example.com"
port = 8005
uploads = '/home/dannydevito/uploads' # uploaded files will be stored
qrcodes = '/home/dannydevito/qrcodes' # qr codes will be stored
# gunicorn
bind = "0.0.0.0:" + uploadr.port
dependencies
uploadr uses the following modules:
flask
qrcode
werkzeug