IT-Solutions Bittkau CDN

IT-Solutions Bittkau

Unser Content Delivery Network für hochperformante Dateiablage und -verwaltung.

POST /api/upload

Upload bis zu 5 Dateien

Beispiel

curl -X POST https://cdn.it-btk.de/api/upload
-H "X-API-Key: YOUR-API-KEY"
-F "files=@image.jpg"
GET /api/files

Liste aller hochgeladenen Dateien abrufen.

GET /api/files/{id}/view

Discord Preview Link für eine Datei.

GET /api/files/{id}/download

Direkter Download einer Datei.

GET /api/health

Überprüfung des API-Status.

Error Handling

400 Bad Request
{ "error": "File type not allowed" }

401 Unauthorized
{ "error": "Missing API key" }

429 Rate Limit
{ "error": "Too many requests" }
  

Examples

JavaScript

axios.post('/upload', formData, {
 headers: { 'X-API-Key': 'KEY' }
})
  

Python

requests.post(url, files=files, headers=headers)
  

PHP

curl_setopt($ch, CURLOPT_POSTFIELDS, [...])