Sign inSign up

mattintech/simplefileupload-server

By mattintech

โ€ขUpdated 9 months ago

Lightweight Flask server for quick file uploads, downloads, and mobile log sharing.

Image
Networking
Developer tools
Web servers
1

627

mattintech/simplefileupload-server repository overview

โ Quick Start

docker run -p 7777:7777 yourusername/simplefileupload-server

The server will be available at http://localhost:7777

โ Features

  • ๐Ÿš€ Clean, modern UI for file downloads
  • ๐Ÿ”’ Secure API authentication for uploads
  • ๐Ÿ“ฑ Mobile-friendly upload endpoint
  • ๐ŸŽฏ Secure 6-digit alphanumeric code system
  • ๐Ÿงน Automatic file cleanup
  • โš™๏ธ Configurable download limits and expiry times

โ Docker Configuration Options

โ Basic HTTP Setup (Development)
docker run -p 7777:7777 \
  -e CLIENT_KEY=your-secret-key \
  yourusername/simplefileupload-server
โ HTTPS Setup (Required for Mobile App)
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
โ Persistent Storage
docker run -p 7777:7777 \
  -e CLIENT_KEY=your-secret-key \
  -v $(pwd)/uploads:/app/tmp \
  yourusername/simplefileupload-server

โ Environment Variables

VariableDescriptionDefault
CLIENT_KEYAPI key for file uploadsdefault-secret-key
UPLOAD_FOLDERUpload directory pathtmp/uploads
MAX_CONTENT_LENGTHMaximum file size16MB
DEBUGEnable debug modeFalse

โ API Usage Example

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

โ Security Recommendations

  • Always change the default CLIENT_KEY in production
  • Use HTTPS in production by mounting SSL certificates
  • Set appropriate file size limits
  • Monitor disk usage when using persistent storage

โ Source Code

Find the full source code and documentation on GitHubโ 

โ License

MIT

Tag summary

Content type

Image

Digest

sha256:6cbe522ecโ€ฆ

Size

50.9 MB

Last updated

9 months ago

docker pull mattintech/simplefileupload-server