Uploading files
Direct upload
Upload a file using amultipart/form-data POST request:
id— A unique identifier for the file.file— The file binary.fileName— Display name of the file.
metadata— Arbitrary JSON metadata attached to the file.
Chunked upload
For large files, Yboard supports chunked uploads. Send file data in sequential base64-encoded chunks:0. The server tracks progress and assembles the file after all chunks are received.
Progress response:
Listing files
Retrieve all files with their metadata:/files/metadata endpoint for the same data without file content.
Downloading files
Content-Type and Content-Disposition headers.
Deleting files
Single file
Batch delete
File metadata
Retrieve metadata for a specific file without downloading the content:Storage details
- Files are stored in Cloudflare R2 with keys in the format
{organizationId}-{appId}-{fileId}. - Metadata (ID, filename, custom JSON) is stored in the database.
- All file operations require a valid Bearer token matching the organization.