Skip to content

Commit d27a7f9

Browse files
committed
revert(upload): drop 1GB limit from outline PR, keep scope clean
The 50MB->1GB upload limit change is unrelated to this outline Q&A PR and broke upstream CI (upload-controller.test.ts expects 413 at 50MB threshold). Spinning it off into its own PR with matching test updates.
1 parent 7b3d468 commit d27a7f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/server/src/controllers/upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getProfileUploadDir } from '../services/hermes/upload-paths'
66
import { MultipartParseError, parseMultipartBoundary, parseMultipartFilename, splitMultipart } from '../lib/multipart'
77
import { drainRejectedRequest, nonDestroyingRequestBody } from '../lib/request-body'
88

9-
const MAX_UPLOAD_SIZE = 1024 * 1024 * 1024 // 50MB
9+
const MAX_UPLOAD_SIZE = 50 * 1024 * 1024 // 50MB
1010

1111
function requestedProfile(ctx: any): string {
1212
return ctx.state?.profile?.name || getActiveProfileName() || 'default'

0 commit comments

Comments
 (0)