Amazing Flask Solution For Dogshit IoT

yk 90641768ad 🎆️ initial commit 6 months ago
.gitignore 1703280e6c Initial commit 6 months ago
LICENSE 1703280e6c Initial commit 6 months ago
README.md 90641768ad 🎆️ initial commit 6 months ago
server.py 90641768ad 🎆️ initial commit 6 months ago

README.md

upload-server

When scp/ssh, usb, and cloud are not options for large file transfer, try this flask server. Host it over LAN or private networks.

Very simple, just two buttons. Pick file, send file. Works on any device with a browser, no javascript needed.

setup

git clone https://notabug.org/yk/upload-server.git && cd upload-server/
vim server.py # change UPLOAD_FOLDER and ALLOWED_EXTENSIONS
export FLASK_APP=server.py
python -m flask run --host 192.168.1.XXX --port 5000

And open the browser on your family's friend's iPhone or whatever shitty thing you have to fix as IT of the family, connect to the wifi, put the ip:port in the address bar, and viola, send whatever shit files.

Of course it's retarded to do it this way if scp exists but I was in a pickle where I had to extract 3gb of family photos from an android phone that didn't have a working usb connection. One option would be cloud, but cloud is sketchy, another would be terminal, but that phone was too old for termux, and finally this flask solution, which is unencrypted file transfer, but it solved the problem without making outside contact or having to create cloud accounts.