Ðo ɖe wò users nàɖo foto, video kple agbalẽwo tso browser me ɖe ɖe. Fiɛlwo nɔa anyi va se ne wò alo wò app ɖea wo, eye ɖe wo ɖe CDN link kple signed webhook. Le Rapidfile plan ɖesiaɖe me, bandwidth fees aɖeke o.
codeStorage si mavɔ na dzidzenuwɔlawo ƒe apps: fiɛlwo nɔa anyi va se ne wò alo wò app ɖea wo, eye CDN links naa wo. Be nàɖo fiɛl si ɖoa ɖe wo ɖokui la, zã Rapidfile. Be nàɖo nɔnɔmetata kple videowo sɔ, zã Rapidfile Media.
addXɔ API keyKpɔ docs
2 GBstorage free
$5/ɣl na 100 GB
50 GBfiɛl gãtɔ ƒe gbɔgbɔ
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"
Nu katã si user uploads hiã, eye mehiã be nàwɔ server aɖe o
bolt
Browser uploads ɖe ɖe
Wò server naa browser signed upload URL. Bytes mete ŋu va wò servers o, ale naneke mesɔa proxy alo scale o.
upload_file
Multipart va 50 GB pɛ
Fiɛl gãwo woɖoa ɖe parts siwo dze ɖe ɖe eye wodzena ɖe ɖe nɔnɔme ɖe. SDK la wɔa esia kple function ɖeka.
link
CDN links
Fiɛl ɖesiaɖe si nye public la xɔa URL si mavɔ le cdn.rapidfile.cc, si le ŋunya na <img>, <video> alo download link.
lock
Fiɛlwo ŋutɔ, signed URLs
Ðo uploads ɖe ŋutɔ eye naa signed URLs si ɖoa ɖe ɣeyiɣi si nèdi, tso sekend geɖe va ŋkeke 7 pɛ.
notifications
Webhooks kple HMAC
Xɔ file.uploaded kple file.deleted events, si wowɔ signature ɖe HMAC-SHA256 kple be nànya be tso mía gbɔ wonɔ.
speed
Bandwidth free
Egress fees aɖeke o eye request ƒe xexlẽme ɖe ŋkeke sia ŋkeke aɖeke mele o: CDN delivery manɔmɛ ɖe plan ɖesiaɖe me, ale fiɛl si ame geɖe kpɔna matso nu ɖe wò gbɔ o.
verified_user
Ðoɖo si ɖoa ɖe ɖe
Free ɖe gbã, azɔ $5, $15, $49 ɣleti ɖeka. Ðoɖo si le page la me enye ɖoɖo si le invoice la me.
terminal
REST ɖe ɖe, SDK sue
Endpoints aɖewo ɖeka, JSON ɖo kple ɖe, CORS le dzi. Zã browser SDK alo fetch tso gbe ɖesiaɖe me.
claude mcp add --transport http rapidfile-api https://api.rapidfile.cc/mcp --header"Authorization: Bearer rk_live_…"
Nu ka mede hiã?
Upload API nye storage si mavɔ na dzidzenuwɔlawo: fiɛlwo nɔa anyi va se ne wò alo wò app ɖea wo. Ne èdi be nàɖo fiɛl si ɖoa ɖe eŋutɔ ɖe ame aɖe, alo nàdo foto kple video ɖe anyi, nu siawo nyo wu.
sendƉo fiɛl ɖeka → Rapidfilephoto_libraryƉo nɔnɔmetata alo video ɖe anyi mavɔ → Mediacode_blocksƉe app-ƒe fiɛlwo anyi mavɔ → Upload API
Fiɛl ɖoɖo service si wotsɔ ɖo ɖe web alo mobile app ƒe nu. Wò server wɔa upload kple secret key, wò user ƒe browser ɖoa fiɛl la yi Rapidfile ŋutɔ, eye nàxɔ CDN link kple webhook. Enzonic LLC, si ŋu Rapidfile ƒe dɔwɔlawo le, wɔa eye wòdea dzi.
Ðoɖoa ka?
Upload API le Rapidfile plan ɖesiaɖe me: storage si mavɔ 2 GB kple CDN requests manɔmɛ free, storage geɖe kple Rapidfile Plus kple Pro. Na dɔwɔwɔ gã, add-ons ɖoa ɖe $5 ɣleti ɖeka na 100 GB. Ðoɖo le fiksa: bandwidth alo ɖoɖo ɖe upload ɖesiaɖe ŋu aɖeke mele o. Kpɔ pricing.
Ɣeyiɣi kae fiɛlwo nɔa anyi?
Va se ne èɖe wo. Upload API nye storage si mavɔ: fiɛlwo nɔa anyi va se ne èɖe wo le dashboard la me alo wò app ɖea wo tso API (DELETE /v1/files/:id) dzi. Naneke ɖoa ɖe eŋutɔ o, abe Rapidfile transfers ene, siwo ɖea wo ŋutɔ tso hora 1 va ŋkeke 30 pɛ.
Ðe fiɛlwo doa ɖe nye server dzi?
Ao. Wò server ɖoa JSON request sue ɖeka ko be nàwɔ upload la. Bytes ɖoa tso browser yi Rapidfile ŋutɔ kple signed URL si nɔa anyi ɣeyiɣi ɖeka ko eye wòwɔa dɔ na fiɛl ɖeka ko.
Ðe uploads ate ŋu anɔ gã kae?
Va 512 MB pɛ ɖe fiɛl ɖeka ɖe free plan me, eye va 50 GB pɛ le Scale me. Fiɛlwo si gbɔ wu MB 95 ɖoa ɖe parts siwo dze ɖe ɖe me; browser SDK wɔa esia, kple retries kple progress.
Ðe fiɛlwo ate ŋu anɔ ŋutɔ?
Ẽ. Wɔ upload la kple "acl": "private". Fiɛlwo si ŋutɔ nye la menɔ public URL o; wò server wɔa signed URLs si nɔa kpuie (va ŋkeke 7 pɛ) ne user dea ŋui be nànya fiɛl la.
Nu ka frameworks wɔa dɔ?
Nu ɖesiaɖe si ate ŋu awɔ HTTPS request. Docs la nɔ copy-paste mɔnuwo na Next.js, Express, SvelteKit kple HTML ɖeka, eye API la nye REST ɖe ɖe kple JSON.
Ðe SDK li?
Browser module si mahiã dependency aɖeke o le https://api.rapidfile.cc/sdk.js (MIT license). Ele fiɛl ɖeka kple multipart fiɛlwo ɖoɖo, naa progress eye ɖea parts siwo wòdze megbe ɖe ɖe. Le server ƒe akpa me la, fetch ko hiã.
Ðe AI agents ate ŋu azã API la?
Ẽ. https://api.rapidfile.cc/mcp nye remote MCP server (Streamable HTTP). Ðo Claude Code, Cursor, VS Code alo MCP client ɖesiaɖe kple app ƒe secret key eye agent la ate ŋu adoa fiɛlwo, adze eye adzrɔ wo, awɔ signed URLs kple akpɔ usage. Kpɔ MCP na AI agents.
Ðo uploads le ŋdi sia
Ðo app ɖe, ƒo secret key ɖe wò server me, eye ɖo SDK la me.