Skip to content

Request entity too large when uploading a file #2050

Answered by 0x8000ff
0x8000ff asked this question in Q&A
Discussion options

You must be logged in to vote

found it!
the middleware can be added to vendure-config.ts

apiOptions: {
    middleware: [
        {beforeListen: true, route: '*', handler: bodyParser.json({limit: '50mb'})},
        {beforeListen: true, route: '*', handler: bodyParser.urlencoded({limit: '50mb', extended: true})}
    ],
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0x8000ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant