Endpoint
API Upload File
Upload file dan dapatkan link yang bisa dibagikan secara instan
POST /api/upload/file
Upload file via multipart/form-data
Detail Request
POST
/api/upload/fileContent-Type:multipart/form-data
Field Wajib:file
Field Opsional:uploader_name
Batas Rate
Upload per hari:20
Ukuran file maksimal:10 MB
Autentikasi:IP-based
Contoh Kode
curl
curl -X POST "https://upload.ylizidev.tech/api/upload/file" \
-F "file=@./path/to/your/file.jpg" \
-F "uploader_name=John Doe" \
-H "Accept: application/json"Response Sukses
HTTP 200Sukses
{
"id": "abc123def456",
"name": "file.jpg",
"download_link": "https://upload.ylizidev.tech/api/d/abc123def456",
"share_link": "https://upload.ylizidev.tech/download/d/abc123def456"
}Field Response
id- Identifier file unikname- Nama file aslidownload_link- URL download langsungshare_link- URL halaman berbagi
Pola URL
/api/d/{id}- Download langsung/download/d/{id}- Halaman berbagi/api/getfile/{id}- Redirect API
Response Error
HTTP 400Field file tidak ada
{
"message": "file is required"
}HTTP 429Batas rate terlampaui
{
"message": "Rate limit exceeded",
"used": 20,
"remaining": 0,
"limit": 20
}HTTP 403IP diblokir
{
"message": "IP blocked"
}HTTP 413File terlalu besar
{
"message": "File too large for Redis storage (max 10MB)",
"code": "STORAGE_LIMIT_EXCEEDED"
}