Skip to content

Rapidfile Upload API and Media

File uploads for your apps. Hosting for your media.

The Rapidfile Upload API stores the files your users upload, and Rapidfile Media hosts your images, videos and audio. Both deliver from cdn.rapidfile.cc, use your Enzonic sign-in, and apply the limits of your paid Enzonic plan automatically.

Included in every paid Enzonic plan. Free accounts use Rapidfile's own free plan.

Rapidfile Upload API: the Upload API home page on api.rapidfile.cc with a Next.js upload route

Rapidfile Upload API

A REST API at api.rapidfile.cc for the apps you build. Your server keeps the secret rk_live_ key; the browser only ever sees a signed upload URL.

Signed upload URLs
POST /v1/uploads returns a signed URL that is valid for one hour and safe to hand to the browser, which uploads straight to storage.
Large files in parts
Files up to 95 MB upload in one request; larger files get a multipart upload, up to your plan's file size limit.
Server uploads and file management
Upload from your server with PUT /v1/files, and list, get and delete files with the same key.
Public or private files
Public files get a link on cdn.rapidfile.cc. Private files get signed links that expire within seven days.
Signed webhooks
file.uploaded and file.deleted events reach your endpoint with an HMAC-SHA256 signature you can verify.
Scanned before delivery
Uploaded files are scanned for malware, and a file is not delivered from the CDN until its scan has finished.
app/api/upload/route.ts
// Your server: create an upload with the secret key
const res = await fetch("https://api.rapidfile.cc/v1/uploads", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.RAPIDFILE_KEY}`, // rk_live_...
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ name: "avatar.png", size: 48213, type: "image/png" }),
});
return Response.json(await res.json()); // { file, upload }
In the browser (sdk.js)
// The browser: upload straight to storage with sdk.js
import { uploadFile } from "https://api.rapidfile.cc/sdk.js";

const file = await uploadFile(input.files[0], {
  getUpload: "/api/upload", // your endpoint above
  onProgress: (p) => console.log(p.percent),
});
console.log(file.url); // https://cdn.rapidfile.cc/<id>/avatar.png

The browser SDK at api.rapidfile.cc/sdk.js has no dependencies: it asks your endpoint for an upload, sends large files in parts and reports progress.

Rapidfile Media

Image, video and audio hosting at media.rapidfile.cc, for the files you want to share yourself.

A link, a player and a share page for every file

Drop a file and get a share page, an embeddable player and a direct CDN link. Keep files public or unlisted, and see how often they are viewed.

Images
PNG, JPEG, GIF, WebP, AVIF
Video
MP4, WebM, QuickTime
Audio
MP3, M4A, OGG, WAV, WebM
  • Share page and embeddable player
  • A direct CDN link for every file
  • Public or unlisted files with view counts
  • A JSON API to upload and manage media from your own tools
Open Rapidfile Media
Rapidfile Media: the Rapidfile Media upload page on media.rapidfile.cc

Rapidfile limits per plan

The Free column is Rapidfile's own free plan. Each paid Enzonic plan applies the limits in its column automatically, and Rapidfile uses the higher of those and your own Rapidfile plan.

PlanFreeFreeStarter$5 a monthPro$10 a monthGrowth$19 a monthBusiness$29 a month
Rapidfile Upload API
Storage2 GB100 GB200 GB500 GB1 TB
File sizeUp to 512 MBUp to 4 GBUp to 8 GBUp to 16 GBUp to 32 GB
Apps3102550100
CDN deliveriesNot metered per dayNot metered per dayNot metered per dayNot metered per dayNot metered per day
Rapidfile Media
Storage1 GB100 GB200 GB500 GB1 TB
File sizeUp to 100 MBUp to 5 GBUp to 10 GBUp to 20 GBUp to 20 GB
CDN requests200,000 a day1,000,000 a day2,000,000 a day4,000,000 a day8,000,000 a day

Upload API deliveries from the CDN are not metered per day. A grant applies the Rapidfile limits of the granted plan too.

Rapidfile on enzonic.dev

Compare every limit on enzonic.dev

Cloud grants

Free Pro or Business time and up to $500 of Cloud credit for people who build for others.

  • Pro or Business for 3, 6 or 12 months
  • Up to $500 of Cloud credit on your Enzonic balance
  • One grant covers Deploy, Databases, CI and the plan's Rapidfile limits
  • Read by a person, usually answered within a few days

Apply with the form on enzonic.dev. A free Enzonic account is all you need, and no card.

  • Open source
  • Students
  • Non-profits
  • Startups
  • Educators
  • Hackathons

Questions

No. Rapidfile uses the same Enzonic sign-in. When your Enzonic plan is paid, Rapidfile applies its Upload API and Media limits to your account automatically, or your own Rapidfile plan if that is higher.

Create an API key and send your first upload.

Hosting the app, its database or its pipeline too?