We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1469ba1 commit cc09c93Copy full SHA for cc09c93
2 files changed
apps/sim/app/api/files/multipart/route.ts
@@ -138,8 +138,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
138
// Apply storage quota to all user-driven upload contexts (not system/metadata contexts)
139
if (
140
!QUOTA_EXEMPT_STORAGE_CONTEXTS.has(context as StorageContext) &&
141
- typeof fileSize === 'number' &&
142
- fileSize > 0
+ typeof fileSize === 'number'
143
) {
144
const { checkStorageQuota } = await import('@/lib/billing/storage')
145
const quotaCheck = await checkStorageQuota(userId, fileSize)
apps/sim/lib/uploads/shared/types.ts
@@ -32,6 +32,7 @@ export const QUOTA_EXEMPT_STORAGE_CONTEXTS = new Set<StorageContext>([
32
'profile-pictures',
33
'workspace-logos',
34
'og-images',
35
+ 'logs',
36
])
37
38
export interface FileInfo {
0 commit comments