How to upload your content
bundle.social supports two methods for uploading media files. A three-step upload flow for large files and an alternative simple upload for smaller files.Method 1: Three-Step Upload Flow (recommended, please use it)
This method uses a pre-signed URL and is ideal for large video files or when you need more control over the upload process.Step 1 – Initialize
Endpoint:POST /upload/init
Swagger: upload.initLargeUpload
Parameters
-
fileName(required) — The name of the file you want to upload -
mimeType(required) — The MIME type of your file. Supported values:-
Images:
image/jpg,image/jpeg,image/png -
Videos:
video/mp4
-
Images:
-
teamId(optional) — The team ID to associate this upload with. If not provided, the upload is visible org‑wide to all teams.
Step 2 – Upload
Send a PUT request with the binary file as the raw body to the providedurl from Step 1.
The PUT target
url is a one-time upload location. Do not JSON‑encode the file. Send the file bytes directly as the raw body.Step 3 – Finalize
Endpoint:POST /upload/finalize
Swagger: upload.finalizeLargeUpload
Parameters
-
path(required) — Thepathvalue returned in Step 1 -
teamId(optional) — The team ID (should match the one used in Step 1)
id that you can use when creating posts.
Example using SDK
Method 2: Simple Upload (Alternative approach)
This is a simpler, one-step upload method ideal for smaller files. It uses a standard multipart/form-data upload. Endpoint:POST /upload/create
Swagger: upload.create
Parameters
-
file(required) — The file to upload (multipart form data) -
teamId(optional) — The team ID to associate this upload with
id that you can use when creating posts.
Example using SDK
The simple upload method is easier to implement but may have file size limitations. For large video files (>90MB), we recommend using the three-step upload flow.
Supported file types
| Media Type | MIME Type | Extension |
|---|---|---|
| JPEG Image | image/jpeg or image/jpg | .jpg, .jpeg |
| PNG Image | image/png | .png |
| MP4 Video | video/mp4 | .mp4 |
Maximum file sizes:
- Images: 25MB
- Videos: 1024MB (1GB)
Which method should I use?
-
Use the three-step flow when:
- Uploading large video files (>90MB)
- You need more control over the upload process
- You are uploading picture of your mom
-
Use the simple upload when:
- Uploading small to medium-sized files
- You want a simpler implementation
- File size is under 90MB
- You’re prototyping or building a simple integration