Skip to content

Commit 4b5e192

Browse files
committed
fix files
1 parent 9e02247 commit 4b5e192

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function POST(request: NextRequest) {
7575
const uploadResults = []
7676

7777
for (const file of files) {
78-
const originalName = file.name || 'untitled'
78+
const originalName = file.name || 'untitled.md'
7979

8080
if (!validateFileExtension(originalName)) {
8181
const extension = originalName.split('.').pop()?.toLowerCase() || 'unknown'

apps/sim/app/api/workspaces/[id]/files/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export async function POST(request: NextRequest, { params }: { params: Promise<{
9393
return NextResponse.json({ error: 'No file provided' }, { status: 400 })
9494
}
9595

96-
const fileName = rawFile.name || 'untitled'
96+
const fileName = rawFile.name || 'untitled.md'
9797

9898
const maxSize = 100 * 1024 * 1024
9999
if (rawFile.size > maxSize) {

0 commit comments

Comments
 (0)