Upload files to a server on your local network for faster and simpler file transfers across a network
Go to file
2021-05-18 18:19:37 +01:00
css Improve styling of uploadsuccess.html 2017-10-25 12:51:18 +01:00
fonts Working. 2017-10-24 21:34:55 +01:00
templates Remove old file 2018-04-07 17:22:46 +01:00
_config.yml Set theme jekyll-theme-minimal 2018-05-20 20:08:30 +01:00
.gitignore update .gitignore 2017-10-25 12:53:22 +01:00
config.py Update config.py 2021-05-18 18:18:41 +01:00
LICENSE Create LICENSE 2017-10-25 14:03:12 +01:00
README.md Update README.md 2021-05-18 18:15:44 +01:00
requirements.txt Create requirements.txt 2021-05-18 18:19:37 +01:00
uploadr.py Update uploadr.py 2021-05-18 18:17:38 +01:00

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