TineSH CDN
Upload file hingga 50 MiB.
Pilih file untuk memulai.
File dan data tersimpan secara permanen di server, pastikan untuk simpan ID jika mau hapus.
Dokumentasi API
POST /upload
Unggah satu file memakai multipart/form-data.
- Field:
file(wajib, satu file, maksimal 50 MiB) - Ekstensi berbahaya diblokir (exe, sh, js, php, dll).
Contoh:
curl -i -F file=@/path/to/the/file.ext /upload
Respons 201 Created:
{
"ok": true,
"id": "c3c5a118-819d-437d-b963-2cbbdf25f4d8",
"name": "foto.png",
"size": 12345,
"url": "/abc123.png",
"mime": "image/png",
"date": "2026-08-23T06:27:31Z"
}DELETE /delete?id=<uuid>
Hapus file berdasarkan UUID. Alias lama: GET /delete?id=<uuid>.
- Query:
id(wajib, UUID valid)
Contoh:
curl -X DELETE "/delete?id=<uuid>"
Respons 200 OK:
{
"ok": true,
"message": "File <uuid> has been deleted, can not be undone.",
"date": "2026-08-23T06:27:31Z"
}