Skip to content

Commit c44177b

Browse files
waleedlatif1claude
andcommitted
fix(uploads): allow non-document execution outputs in presigned route
The execution branch of the presigned upload route called validateFileType, which only permits documents — but workflow execution outputs are arbitrary by design (images, audio, video, code). The legacy /api/files/upload execution branch had no docs-only gate, so the staging refactor to presigned PUTs regressed parity. Switch execution to validateAttachmentFileType to match prior behavior. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c508a0d commit c44177b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/files/presigned

apps/sim/app/api/files/presigned/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
175175
)
176176
}
177177

178-
const fileValidationError = validateFileType(fileName, contentType)
178+
const fileValidationError = validateAttachmentFileType(fileName)
179179
if (fileValidationError) {
180180
throw new ValidationError(fileValidationError.message)
181181
}

0 commit comments

Comments
 (0)