File Operations
Manage files within your buckets — upload, download, list, and delete — all through the dashboard or API.
Uploading Files
Via Dashboard
- Select a bucket from the list
- Drag and drop files onto the upload zone, or click to browse
- Files upload immediately with a progress indicator
Via API
curl
file field must be a multipart form-data upload. Single file per request.
Storage Limit Check
Before uploading, the system checks your plan’s storage limit. If the upload would exceed the limit, the API returns:Downloading Files
Public Buckets
Files in public buckets are accessible directly via their S3 URL:Private Buckets
Files in private buckets are served through the API:Via Dashboard
Click the copy icon next to any file in the dashboard to copy its URL to your clipboard.Listing Files
Via Dashboard
Select a bucket to see all its files in a table with filename, size, content type, and action buttons.Via API
curl
JSON Response
Deleting Files
Via Dashboard
Click the trash icon next to any file to delete it immediately — no confirmation dialog.Via API
curl
JSON Response
File URLs Explained
Public Bucket URL Pattern
bucket.sparkdb.pro— public S3 endpoint{s3_bucket_name}— auto-generated MinIO bucket name (e.g.,spark-42-my-assets-a1b2){filename}— original uploaded filename
Private Bucket URL Pattern
{bucketId}— numeric SparkDB bucket ID{filename}— original uploaded filename
MIME Type Detection
SparkDB auto-detects content types for common file extensions:| Extension | Content Type |
|---|---|
.png | image/png |
.jpg, .jpeg | image/jpeg |
.gif | image/gif |
.svg | image/svg+xml |
.pdf | application/pdf |
.txt | text/plain |
.json | application/json |
.zip | application/zip |
.mp3 | audio/mpeg |
.mp4 | video/mp4 |
