How densaugeo/uploadserver works
uploadserver extends Python’s built-in HTTP server with a browser upload page and multipart file uploads, while retaining file downloads. The main workflow is to start the CLI, serve HTTP requests, authorize them when configured, parse submitted files, and save them under the selected directory. README-documented options also include themes, HTTPS with optional client certificates, and CGI mode. The excerpts show the page and authentication helpers; some handler, startup, and storage details are unsampled, so their documented links are cited to the README.
Main entry points: __init__.py Request handler · __main__.py Module entry · cgi.py Multipart parsing
Components 13
Startup and HTTP
- CLI startup
uploadserver/__init__.py - Module entry
uploadserver/__main__.py - HTTP service
uploadserver/__init__.py - Request handler
uploadserver/__init__.py
Upload and access
- Upload page
uploadserver/__init__.py - Upload handling
uploadserver/__init__.py - Multipart parsing
uploadserver/cgi.py - Upload directory
- File downloads
uploadserver/__init__.py
Security and CGI
- Basic authentication
uploadserver/__init__.py - HTTPS and mTLS
uploadserver/__init__.py - CGI mode
uploadserver/__init__.py
Other components
- Uploader or browser
Connections 15
- Uploader or browser → Module entry: starts service
README.md - Module entry → CLI startup: calls main
uploadserver/__main__.py - CLI startup → HTTP service: configures and starts
uploadserver/__init__.py - Uploader or browser → HTTP service: sends requests
README.md - HTTP service → Request handler: dispatches requests
uploadserver/__init__.py - Request handler → Upload page: serves page
uploadserver/__init__.py - Uploader or browser → Upload handling: posts files
README.md - Request handler → Upload handling: routes upload
uploadserver/__init__.py - Upload handling → Multipart parsing: parses fields
uploadserver/__init__.py - Upload handling → Upload directory: writes files
README.md - Request handler → File downloads: serves files
README.md - Request handler → Basic authentication: checks credentials
uploadserver/__init__.py - Uploader or browser → HTTPS and mTLS: connects securely
README.md - HTTP service → HTTPS and mTLS: enables TLS
README.md - CLI startup → CGI mode: enables CGI
README.md