Skip to content

Commit e47d983

Browse files
committed
docs(providers): clarify files-api bytes are read from storage at upload time
1 parent 9eda861 commit e47d983

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

apps/sim/providers/file-attachments.server.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,11 @@ interface RemoteUrlContext {
3131
}
3232

3333
/**
34-
* Mints a short-lived signed download URL for every attachment that exceeds the inline
35-
* threshold on a large-file-capable provider, storing it on `file.remoteUrl`. Providers
36-
* with a `remote-url` strategy use it directly; `files-api` providers upload from it later.
37-
* Requires cloud storage — without it large files fall back to the (capped) base64 path.
34+
* Resolves every attachment that exceeds the inline threshold on a large-file-capable
35+
* provider to a short-lived signed URL on `file.remoteUrl`. `remote-url` providers send it
36+
* to the model directly; for `files-api` providers it marks the file for upload (the bytes
37+
* are read from storage at upload time). Requires cloud storage — otherwise large files
38+
* fall back to the (capped) base64 path.
3839
*
3940
* The server-only handle fields are first cleared on every file for every provider
4041
* (including inline) so a forged handle on untrusted input can never reach a builder.

0 commit comments

Comments
 (0)