FBC Uploader is a file upload service that allows users to upload files without creating accounts. Administrators generate upload tokens with defined limits and restrictions to control access and usage. Public downloads can be enabled if required, but the primary purpose of the service is to accept uploads from unauthenticated clients and expose the uploaded content to automation and downstream systems through an administrative API.
The service supports resumable uploads using the TUS protocol, token-based authentication, and dynamic metadata validation driven by a configurable schema.
mkdir -p ./{config,downloads} && docker run -d --rm --user "${UID}:${UID}" --name fbc_uploader \
-p 8000:8000 -v ./config:/config:rw -v ./downloads:/downloads:rw \
ghcr.io/arabcoders/fbc_uploader:latestThen you can access the WebUI at http://localhost:8000.
Note
If you are using podman instead of docker, you can use the same command, but you need to change the user to 0:0
it will appears to be running as root, but it will run as the user who started the container.
The following is an example of a compose.yaml file that can be used to run FBC Uploader.
services:
fbc_uploader:
user: "${UID:-1000}:${UID:-1000}" # change this to your user id and group id, for example: "1000:1000"
image: ghcr.io/arabcoders/fbc_uploader:latest
container_name: fbc_uploader
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ./config:/config:rw
- ./downloads:/downloads:rwImportant
Make sure to change the user line to match your user id and group id
mkdir -p ./{config,downloads} && docker compose -f compose.yaml up -dThen you can access the WebUI at http://localhost:8000.
Note
you can use podman-compose instead of docker-compose, as it supports the same syntax. However, you should change the
user to 0:0 it will appears to be running as root, but it will run as the user who started the container.
All configuration is done via environment variables prefixed with FBC_:
| Variable | Default | Description |
|---|---|---|
FBC_CONFIG_PATH |
./data/config |
Configuration directory |
FBC_STORAGE_PATH |
./data/uploads |
Directory for uploaded files |
FBC_ADMIN_API_KEY |
Auto-generated | Admin API key (stored in {config_path}/secret.key if not set) |
FBC_DEFAULT_TOKEN_TTL_HOURS |
24 |
Default token expiration in hours (1-720) |
FBC_CLEANUP_INTERVAL_SECONDS |
3600 |
Interval between cleanup job runs |
FBC_INCOMPLETE_TTL_HOURS |
24 |
Time-to-live for incomplete uploads (0 to disable) |
FBC_DISABLED_TOKENS_TTL_DAYS |
30 |
Days to keep disabled tokens before deletion (0 to disable) |
FBC_DELETE_FILES_ON_TOKEN_CLEANUP |
true |
Delete associated files when cleaning up disabled tokens |
FBC_MAX_CHUNK_BYTES |
94371840 |
Maximum TUS chunk size. Default to (90MB) |
FBC_ALLOW_PUBLIC_DOWNLOADS |
false |
Allow public downloads without authentication |
FBC_TRUST_PROXY_HEADERS |
false |
Trust X-Forwarded-* headers from reverse proxy |
Upload metadata is configurable via {config_path}/metadata.json. Define custom fields with validation rules, types, and UI hints.
The schema is validated on both client and server. See metadata.md for full documentation.
A yt-dlp extractor is available in tools/fbc_extractor.py for downloading files directly from FBC Uploader instances using yt-dlp.
Usage:
# Add extractor to yt-dlp plugins directory
mkdir -p ~/.config/yt-dlp/plugins/my_plugins/yt_dlp_plugins/extractor
cp tools/fbc_extractor.py ~/.config/yt-dlp/plugins/my_plugins/yt_dlp_plugins/extractor/
# Download using download token URL
yt-dlp --username key --password YOUR_API_KEY "https://yourdomain.com/api/tokens/fbc_token_here/uploads"
# Or set FBC_API_KEY environment variable
export FBC_API_KEY=YOUR_API_KEY
yt-dlp "https://yourdomain.com/api/tokens/fbc_token_here/uploads"The extractor authenticates using the admin API key and downloads all completed uploads associated with the token.
See API.md for complete API documentation.
Bug reports are welcome. Please open an issue with:
- Clear description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Environment details (OS, Docker version, etc.)
Note
I am unlikely to accept feature requests. This project serves a specific use case and is maintained primarily for my own needs.