Chunked uploads and gallery links
These routes belong to WODira’s forms, not /external/v1/organizer or the browser SDK API. Secret/publishable keys do not replace a user session or photographer link. The external OpenAPI document does not include these routes.
Protocol
Section titled “Protocol”Parts are 8 MiB (8,388,608 bytes), below Cloudflare Free’s request-body limit. WODira clients chunk large forms from a 16 MiB threshold. The original form’s file limits still apply.
| Method | Route | Purpose |
|---|---|---|
| POST | /uploads/chunked |
Create manifest. |
| GET | /uploads/chunked/:id |
Read status and received parts. |
| PUT | /uploads/chunked/:id/files/:fileIndex/parts/:partIndex |
Multipart with one chunk field. |
| DELETE | /uploads/chunked/:id |
Cancel; returns 204. |
A manifest contains optional UUID requestId for creation retries, API-local absolute targetPath, method (POST, PUT, PATCH), and ordered entries. An entry is { kind: 'file', fieldname, filename, contentType, size } or { kind: 'text', fieldname, value }. fileIndex is the index in entries, including text entries; partIndex is zero-based. The response includes id, chunkSize, expiresAt, status.
- Create the manifest with the destination form’s credentials and organization.
- Slice each file using returned
chunkSize; the final part must have exactly the remaining size. - Send parts. On failure, query status and retry missing parts.
- Finalize at the original endpoint and method with JSON
{ "__wodiraChunkedUpload": "<id>" }as the only field. There is no separate/completeendpoint. - The server reconstructs multipart and applies the destination’s permissions, validation and limits. It retains the final result for retries of that upload; do not create another session to repeat a completed operation.
Default expiry is six hours; at most four pending uploads per owner. Use returned expiresAt as finalization can extend it. Start over after expiry. Do not reuse a requestId for different files or metadata.
Account-free photographer uploads
Section titled “Account-free photographer uploads”Organizers create and revoke upload links from the event gallery. The link is a credential limited to that event, not a user session or API key.
GET /gallery-upload/:token: portal information.POST /gallery-upload/:token/media:filesfor photos/videos,zipfor an archive, requireduploaderName, optionaluploaderEmail.- For
/uploads/chunked, providex-gallery-upload-tokenand set the destination to/gallery-upload/:token/media. The upload can only finalize in that link’s gallery.
Upload responses contain accepted (file count), queuedArchives, rejected. A queued ZIP still requires processing; a successful HTTP response does not mean every archive image has been published. Display partial rejections too.
Operations and privacy
Section titled “Operations and privacy”Keep gallery tokens out of logs and analytics. Do not switch user, organization or link during an upload. Multiple API instances require shared temporary storage supporting the service’s atomic filesystem operations: separate replica-local volumes cannot resume each other’s uploads. Keep expired-session cleanup enabled and monitor free space. Temporary storage is separate from final media storage and backups.