Media Upload

Upload Session

Group your uploads into a single folder.

API usage

cURL request

curl -X POST http://localhost:3000/api/upload \
  -F "file=@/path/to/image.png"

Expected input: multipart/form-data with a field named file containing an image or video file.

Expected output: a JSON response with a data object on success, or an error message on failure.

JavaScript POST request

const formData = new FormData();
formData.append("file", fileInput.files[0]);

const res = await fetch("/api/upload", {
  method: "POST",
  body: formData,
});

Expected input: a FormData object with the file stored under the file key.

Expected output: a JSON object with a data field on success or an error field on failure.

Recent Uploads

No uploads found. Upload a file to get started.