Clique ou glisse ton fichier ici
📘 API – Upload de fichiers
Tu peux utiliser ce script depuis un client HTTP (curl ou fetch) pour envoyer un fichier et recevoir son lien direct.
📤 Endpoint
POST https://upload.natchen.us.kg/
📦 Paramètres
- file (multipart/form-data) → le fichier à envoyer
✅ Extensions autorisées
jpg, json, jpeg, png, gif, webp, avif, svg, mp3, wav, ogg, mp4, avi, mov, mkv, pdf, doc, docx, xls, xlsx, ppt, pptx
📈 Limites & Rate-Limits
- ⏱️ 1 upload / 2 secondes / IP
- 📁 Taille max : 100 Mo
- 📦 Quota hebdo : 2 Go
📥 Exemple curl
curl -X POST -F "file=@monimage.png" https://upload.natchen.us.kg/
📤 Exemple JS
const form = new FormData();
form.append("file", myFile);
fetch("https://upload.natchen.us.kg/", {
method: "POST",
body: form
}).then(r => r.text()).then(console.log);
📘 Réponse
https://natchen.us.kg/files/1730283910_a3b9f7d2.png
⚠️ Codes d'erreur
- 400 → Fichier/extension/taille invalide
- 429 → Trop de requêtes ou quota atteint
- 500 → Échec serveur
💡 Pour héberger des fichiers non statiques, archives ou formats non pris en charge, utilise natchfiles.com.