S3 Compatible Object Storage Upload Demo

Source Code

This demo showcases simple file uploads using S3 compatible object storage (Cloudflare R2 in this case) and SvelteKit. Files are uploaded using presigned URLs, and maximum size is verified using a signed Content-Length header. File names and URLs are synchronized in local storage, and files are automatically deleted after 48 hours.

DO NOT UPLOAD PRIVATE AND SENSITIVE FILES

Normal upload is suitable for general-purpose uploads, including small to medium files. It uses a single connection.

Multipart upload is suitable for large files, and it uses multiple connections to upload parts of the file in parallel. Multipart upload is recommended for files larger than 100MB.

Upload a File

Choose the upload type suitable for your file:

Maximum file size: 10MB

Uploaded Files

No files uploaded yet.