🚀 Cert Storage Server

✅ Server Active

📡 Server Information

Status: Online

Upload Endpoint: POST /upload.php

Max File Size: 10MB

Allowed Types: jpg, jpeg, png, gif, pdf, doc, docx, txt, zip

📤 How to Upload

curl -X POST https://cert.karantinaindonesia.my.id/upload.php \
  -F "file=@/path/to/your/file.pdf"

📥 Response Example (Success)

{
  "status": "success",
  "code": 200,
  "message": "File uploaded successfully",
  "data": {
    "original_name": "document.pdf",
    "secure_name": "1734567890_abc123.pdf",
    "file_url": "https://cert.karantinaindonesia.my.id/uploads/1734567890_abc123.pdf",
    "file_size": 1024000,
    "file_size_formatted": "1.00 MB",
    "file_type": "pdf",
    "file_category": "document",
    "uploaded_at": "2025-01-15 10:30:00",
    "server": "https://cert.karantinaindonesia.my.id"
  }
}
            

🔧 API Reference

Endpoint: POST https://cert.karantinaindonesia.my.id/upload.php

Content-Type: multipart/form-data

Parameter: file (required)

📊 Statistics

0) { foreach($files as $file) { if(is_file($file)) $total_size += filesize($file); } } ?>

📁 Files Stored:

💾 Total Storage Used: 0 ? round($total_size / 1024 / 1024, 2) : 0; ?> MB

🕐 Auto-cleanup: Files older than 24 hours are automatically deleted