File tree Expand file tree Collapse file tree
apps/sim/app/api/files/presigned Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import type { StorageContext } from '@/lib/uploads/config'
99import { USE_BLOB_STORAGE } from '@/lib/uploads/config'
1010import { generateWorkspaceFileKey } from '@/lib/uploads/contexts/workspace/workspace-file-manager'
1111import { generatePresignedUploadUrl , hasCloudStorage } from '@/lib/uploads/core/storage-service'
12- import { MAX_WORKSPACE_FILE_SIZE } from '@/lib/uploads/shared/types'
1312import { isImageFileType } from '@/lib/uploads/utils/file-utils'
1413import { validateFileType } from '@/lib/uploads/utils/validation'
1514import { getUserEntityPermissions } from '@/lib/workspaces/permissions/utils'
@@ -144,13 +143,6 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
144143 throw new ValidationError ( fileValidationError . message )
145144 }
146145
147- if ( fileSize > MAX_WORKSPACE_FILE_SIZE ) {
148- return NextResponse . json (
149- { error : `File size exceeds maximum of ${ MAX_WORKSPACE_FILE_SIZE } bytes` } ,
150- { status : 413 }
151- )
152- }
153-
154146 const customKey = generateWorkspaceFileKey ( workspaceId , fileName )
155147 presignedUrlResponse = await generatePresignedUploadUrl ( {
156148 fileName,
You can’t perform that action at this time.
0 commit comments