Skip to content

Commit 39bd68c

Browse files
committed
docs(uploads): clarify QUOTA_EXEMPT_STORAGE_CONTEXTS logs entry in JSDoc
1 parent d0519c1 commit 39bd68c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

apps/sim/lib/uploads/shared/types.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ export type StorageContext =
2424
| 'workspace-logos'
2525

2626
/**
27-
* Contexts exempt from storage quota checks — small metadata assets not managed
28-
* by the user (profile pictures, logos, OG images). All other contexts represent
29-
* user-driven uploads and must pass quota validation before upload is initiated.
27+
* Contexts exempt from storage quota checks. Includes system-internal contexts
28+
* (`logs` — written by the execution pipeline, not user-initiated) and small
29+
* metadata assets (`profile-pictures`, `workspace-logos`, `og-images`). All
30+
* other contexts are user-driven uploads and must pass quota validation.
31+
*
32+
* Note: `logs` is excluded from `ALLOWED_UPLOAD_CONTEXTS` in the multipart
33+
* endpoint, so it is unreachable there. The exemption applies to non-multipart
34+
* (single-part) upload paths used by the execution logging pipeline.
3035
*/
3136
export const QUOTA_EXEMPT_STORAGE_CONTEXTS = new Set<StorageContext>([
3237
'profile-pictures',

0 commit comments

Comments
 (0)