Lightweight Flask server for quick file uploads, downloads, and mobile log sharing.
627
docker run -p 7777:7777 yourusername/simplefileupload-server
The server will be available at http://localhost:7777
docker run -p 7777:7777 \
-e CLIENT_KEY=your-secret-key \
yourusername/simplefileupload-server
docker run -p 7777:7777 \
-e CLIENT_KEY=your-secret-key \
-v $(pwd)/cert.pem:/app/cert.pem \
-v $(pwd)/key.pem:/app/key.pem \
yourusername/simplefileupload-server
docker run -p 7777:7777 \
-e CLIENT_KEY=your-secret-key \
-v $(pwd)/uploads:/app/tmp \
yourusername/simplefileupload-server
| Variable | Description | Default |
|---|---|---|
CLIENT_KEY | API key for file uploads | default-secret-key |
UPLOAD_FOLDER | Upload directory path | tmp/uploads |
MAX_CONTENT_LENGTH | Maximum file size | 16MB |
DEBUG | Enable debug mode | False |
Upload a file:
curl -X POST http://localhost:7777/upload \
-H "X-Client-Key: your-secret-key" \
-F "file=@/path/to/your/file.txt"
Response:
{
"code": "ABC123"
}
Download using browser: http://localhost:7777/download/ABC123
CLIENT_KEY in productionFind the full source code and documentation on GitHubโ
MIT
Content type
Image
Digest
sha256:6cbe522ecโฆ
Size
50.9 MB
Last updated
9 months ago
docker pull mattintech/simplefileupload-server