Ka i ka mɔgɔw ci foto, video ani sɛbɛnw browser kɔnɔ fɛɛrɛ. Fayilɛ bɛ to abadɔ fo i walima i app ka u ci kɔ, CDN link kelen kelen ni signed webhook ye. Rapidfile plan bɛɛ kɔnɔ, bandwidth wari tɛ.
codeTo abadɔ fayilɛ sigili developerw ka appw ye: fayilɛw bɛ to fo i walima i app ka u ci kɔ, CDN links kɔnɔ. Fayilɛ bɛ bɔ sabati ci ka kɛ, Rapidfile ka sɔrɔ. I ka foto ani video sigi kɛ, Rapidfile Media ka sɔrɔ.
addAPI key sɔrɔSɛbɛnw kalan
2 GBtɛ wari sigili
$5/kal. 100 GB ye
50 GBfayilɛ bonnin kɛlɛ
app/api/upload/route.ts
// app/api/upload/route.ts: runs on your server, so the secret key stays privateimport { auth } from'@/lib/auth'; // your own session checkexportasyncfunctionPOST(req: Request) {
const user = awaitauth(req);
if (!user) returnResponse.json({ error: 'unauthorized' }, { status: 401 });
const { name, size, type } = await req.json();
const res = awaitfetch('https://api.rapidfile.cc/v1/uploads', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RAPIDFILE_SECRET_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ name, size, type, metadata: { userId: user.id } }),
});
returnResponse.json(await res.json(), { status: res.status });
}
// In the browser: no SDK, no API keyconst picked = document.querySelector('input[type=file]').files[0];
// 1. Ask your own server for an upload URLconst { upload } = awaitfetch('/api/upload', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name: picked.name, size: picked.size, type: picked.type }),
}).then((r) => r.json());
// 2. Send the bytes straight to Rapidfile (files up to 95 MB use one PUT)const res = awaitfetch(upload.url, { method: 'PUT', body: picked });
const { file } = await res.json();
console.log(file.url); // https://cdn.rapidfile.cc/<id>/<name>
terminal
# 1. Create an upload (server side, with your secret key)curl https://api.rapidfile.cc/v1/uploads \
-H"Authorization: Bearer $RAPIDFILE_SECRET_KEY" \
-H"Content-Type: application/json" \
-d'{"name":"cat.jpg","size":48213,"type":"image/jpeg"}'# 2. PUT the bytes to upload.url from the response (no key needed)curl-T cat.jpg "$UPLOAD_URL"# Or upload from your server in one request (up to 95 MB)curl-T cat.jpg -H"Content-Type: image/jpeg" \
-H"Authorization: Bearer $RAPIDFILE_SECRET_KEY" \
"https://api.rapidfile.cc/v1/files?name=cat.jpg"
Endpoint dɔw, JSON ka bɔ ani don, CORS bɛ kɛ. Browser SDK walima kɔdɔ yɔrɔ bɛɛ fetch kɛ.
smart_toy MCP server
I AI agent ka fayilɛ ci dɔ di
Claude Code, Cursor, VS Code walima MCP client wɛrɛ ka https://api.rapidfile.cc/mcp ye ni app ka sekre key ye. I agent bɛ se ka text, binary walima URL ci ka CDN link sɔrɔ, signed upload URLs di, fayilɛw ɲɛ ka bɔ, ani baara ka kɛ ɲɛ.
upload_file
create_upload_url
list_files
get_file
delete_file
get_signed_url
get_usage
descriptionMCP sɛbɛnwKey sɔrɔ
Claude Code
claude mcp add --transport http rapidfile-api https://api.rapidfile.cc/mcp --header"Authorization: Bearer rk_live_…"
Jɔ min bɛ mako?
Upload API ye developerw ka fayilɛ sigili to abadɔ ye: fayilɛw bɛ to fo i walima i app ka u ci kɔ. Mɔgɔ dɔ ka fayilɛ bɛ bɔ sabati ci ka kɛ, walima i ka foto ani video sigi ka kɛ, nin wɛrɛ ka ɲɛ.
sendFayilɛ kelen ci → Rapidfilephoto_libraryFoto walima video to abadɔ → Mediacode_blocksI app ka fayilɛw to abadɔ → Upload API
send
Rapidfile
rapidfile.cc
Fayilɛ ci mɔgɔ dɔ ma
boltA bɛ mun kɛ
Fayilɛ bon, takɛ ani video ci link, QR kɔdɛ walima 6-lanɲɔgɔn kɔdɛ fɛ.
scheduleFayilɛw bɛ to mun waati
Waati dɔ: 1 lɛrɛ se 30 don ma, o kɔ bɔ sabati.
groupJɔ ye o ye
Mɔgɔ bɛɛ ye. Sɔrɔnikɛla kunnafoni wajibi tɛ.
paymentsI plan kɔnɔ bɛ o kɔnɔ
Tɛ wari: 500 MB kunnafoni tɛ, 2 GB donni kɔ. Plus $3.99/kalo la o saba bɛɛ bɛ kɔnɔ.
uploadFayilɛ ciphoto_library
Rapidfile Media
media.rapidfile.cc
Foto ani video sigi
boltA bɛ mun kɛ
Foto, GIF ani video ka CDN link to abadɔ, player ni embed kɔdɛw.
Web walima mobile app ka fayilɛ ci hostinji. I server bɛ ci daminɛ ni sekre key ye, mɔgɔ ka browser bɛ fayilɛ taa Rapidfile la, i bɛ CDN link ni webhook sɔrɔ. Enzonic LLC bɛ o kɛ, Rapidfile ka ekipu.
Joli bɛ ca?
Upload API bɛ Rapidfile plan bɛɛ kɔnɔ: 2 GB to abadɔ sigili ni CDN kɛlɛ tɛ limitɛ tɛ wari, Rapidfile Plus ni Pro la sigili caman. Baarakɛ caman kɔrɔfɛ daminɛ $5/kal. 100 GB ma. Sɔrɔ tɛ kɔrɔya: bandwidth walima ci kelen kelen wari tɛ. Sɔrɔ ɲɛ.
Fayilɛw bɛ mara cogo di?
Abadɔ. Upload API ye to abadɔ sigili ye: fayilɛw bɛ to fo i ka u ci dashibɔrɖ la walima i app ka u ci API (DELETE /v1/files/:id) fɛ. Tɛ fɛn bɛ bɔ sabati, Rapidfile ci bɛ bɔ waati dɔ kɔnɔ (lɛrɛ 1 se don 30 ma).
Fayilɛw bɛ taa i server fɛ wa?
Ɔ́ɔ. I server bɛ JSON kɛlɛ dɔgɔ kelen kɛ ka ci daminɛ. Bayiti bɛ taa browser la Rapidfile la signed URL fɛ, o bɛ baara kɛ lɛrɛ kelen kɔnɔ ani fayilɛ kelen kɔnɔ.
Ci bonnin ka se cogo di?
Free plan la fayilɛ kelen 512 MB ma, ani Scale la 50 GB ma. 95 MB ka bon fayilɛ bɛ ci parallel chunk la; Browser SDK bɛ o ka baara kɛ, ani ɲɛnabɔ ni.
Fayilɛw ka se ka nɔgɔnin ka kɛ wa?
Ɔn. Ci daminɛ "acl": "private" ni. Nɔgɔnin fayilɛ tɛ public URL ye; i server bɛ signed URL dɔgɔ dɔ (7 don ma) da mɔgɔ ye min bɛ fayilɛ ɲɛ.
Framework jumɛn bɛ dɛmɛ?
Min bɛ HTTPS kɛlɛ kɛ. Sɛbɛnw la Next.js, Express, SvelteKit ani HTML sadanin ka kɔdɛ kɛɲɛ sira ɲɛnabɔ bɛ, API ye REST ye JSON ni.
SDK bɛ wa?
Browser module min tɛ dependency kɛ https://api.rapidfile.cc/sdk.js la (MIT lisɛnsi). A bɛ fayilɛ kelen ni caman ci, progress ɲɛ ka bɔ, ani chunk min ka tɔɔrɔ bɛ kɛ, a bɛ o ka segin. Server fɛ fetch dɔ kelen wajibi.
AI agent bɛ API baara kɛ wa?
Ɔn. https://api.rapidfile.cc/mcp ye MCP server ye (Streamable HTTP). Claude Code, Cursor, VS Code walima MCP client wɛrɛ ni app ka sekre key, agent bɛ fayilɛ ci, ɲɛ ka bɔ ani bɔ, signed URLs da ani baara ka kɛ ɲɛ. AI agent ka MCP ɲɛ.