πŸš€ FITRA - File transfer API

Version 1.3.1
2025-08-12

Simple file upload and download service for developers using HTTP requests in CLI.

πŸ’Ύ Todays storage usage

This resets after 24h

Loading... Loading... Loading...

πŸ“‹ API endpoints

POST/upload

Description: Upload a file

cURL example:

curl -X POST -F "file=@/path/to/your/file.txt" https://fitra.adhd.sh/upload

GET/uploads/{fileID}/{filename}

Description: Download a file using the ID and filename from upload response

cURL example:

curl -O https://fitra.adhd.sh/uploads/{fileID}/{filename}

GET/storage

Description: Check storage usage and capacity

cURL example:

curl https://fitra.adhd.sh/storage

GET/health

Description: Check service health

cURL example:

curl https://fitra.adhd.sh/health

πŸ”„ Usage

Step 1: Upload a file using POST /upload with form-data 'file' parameter
Step 2: Use the returned 'id' and 'filename' to construct download URL
Step 3: Download the file using GET /uploads/{id}/{filename}

πŸ’‘ Examples

# 1. Upload a file
curl -X POST -F "file=@myfile.txt" https://fitra.adhd.sh/upload

# Response will include:
# {
#   "id": "abc123...",
#   "filename": "myfile.txt",
#   "url": "https://fitra.adhd.sh/uploads/abc123.../myfile.txt"
# }

# 2. Download the file
curl -O https://fitra.adhd.sh/uploads/abc123.../myfile.txt