Upload your file
Select a file and get a shareable link
Choose a file
or drag and drop here
-
Uploaded successfully
File URL
Docs
Unggah file, langsung dapat link /file/<filename>. Semua format didukung, maks 25 MB.
curl
curl -s -X POST https://svazer-upload.vercel.app/api/upload -F "file=@pepek.jpg" | jq -r .url
Node
import fs from 'fs';
const form = new FormData();
form.append('file', new Blob([fs.readFileSync('pepek.jpg')]), 'pepek.jpg');
const res = await fetch('https://svazer-upload.vercel.app/api/upload', { method: 'POST', body: form });
const data = await res.json();
console.log(data.url); // https://svazer-upload.vercel.app/file/xxxx.jpg
Response
{
"success": true,
"url": "https://svazer-upload.vercel.app/file/xxxx.jpg",
"blobUrl": "https://xxxx.public.blob.vercel-storage.com/xxxx.jpg",
"filename": "xxxx.jpg",
"size": 12345,
"mimetype": "image/jpeg"
}
Endpoint
POST /api/upload— upload file (multipart, fieldfile)GET /file/:filename— ambil file (proxy)