Skip to content

Commit

Permalink
Merge pull request #340 from AutomatingSciencePipeline/api-body-size-…
Browse files Browse the repository at this point in the history
…hotfix

make the body size limit very large
  • Loading branch information
rhit-windsors authored Oct 29, 2024
2 parents 96c44c1 + 73220b3 commit 97e083a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/frontend/pages/api/files/uploadFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { NextApiHandler } from 'next';
import { GridFSBucket } from 'mongodb';
import { Readable } from 'stream';

export const config = {
api: {
bodyParser: {
sizeLimit: '1000mb'
}
},
}

const mongoFileUploader: NextApiHandler<string> = async (req, res) => {
if (req.method === 'POST') {
const { fileToUpload, experimentId } = req.body;
Expand Down

0 comments on commit 97e083a

Please sign in to comment.