Creating file upload functionality
Sep 3, 2024
One alternative:
- set up web server to listen on port X (config 1)
- set a max body request on web server (config 2)
- set up python http.server listener on port X (config 3)
- start a tmux session
- run python http server in the tmux session to serve forever
- go to site address and check functionality is working
- link site address to site map and track site structure
Security
- isolate downloaded files
- auto-remove any symlink files (although creates a race condition → order 2 security)
Improve
- set a client side check on file size using javascript