Skip to content

Commit 0427ff7

Browse files
docs(api): correct the import-async note about upload size limits
The docstring claimed there is no synchronous upload endpoint and so no request-body size cliff. Both are wrong: POST /api/v2/files is a synchronous multipart upload with a 100 MB cap, and it is the only v2 upload path (presigned is deliberately absent). What async-only actually bought: the cap went 10 MB -> 100 MB, it fails on an explicit size check and a bounded body read rather than a proxy cap that silently truncates, authorization completes before any body is buffered, and the table write is a job that can be watched and cancelled.
1 parent f6f5084 commit 0427ff7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

apps/sim/lib/api/contracts/v2/tables.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,12 @@ export type V2ImportAsyncData = z.output<typeof v2ImportAsyncDataSchema>
945945

946946
/**
947947
* Starts a background import of a file already uploaded to workspace storage
948-
* (`POST /api/v2/files` returns the `key`). Import is the only way in — there is
949-
* no synchronous upload endpoint, so no request-body size cliff.
948+
* (`POST /api/v2/files` returns the `key`).
949+
*
950+
* The upload step is still a synchronous multipart request capped at 100 MB, so
951+
* the byte limit moved rather than vanished — but it now fails loudly on an
952+
* explicit size check instead of relying on a proxy cap that truncates, and the
953+
* table write itself is a job that can be watched and cancelled.
950954
*
951955
* Returns immediately. A table carries at most one write job, so progress is
952956
* read off the table itself (`GET /api/v2/tables/[tableId]` → `job`) rather than

0 commit comments

Comments
 (0)