Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
I have found that when using the single container setup when trying to upload files to an S3 bucket I get the "request entity too large" error. The file for this test is a pdf with file size according to windows of 205kb. My limit according to LOWCODER_MAX_REQUEST_SIZE is 20m
Expected Behavior
It should allow me to upload the file.
Steps to reproduce
Use file upload and then try to upload to an s3 bucket.
Environment
single image or cloud
Additional Information
/** Custom middleware: use raw body for encrypted requests /
router.use((req, res, next) => {
if (req.headers["x-encrypted"]) {
// Change this line:
body_parser_1.default.text({ type: "/", limit: '50mb' })(req, res, next); // <--- ADDED 'limit: "50mb"'
// You could also use the numerical form: limit: 1024 1024 * 50
}
else {
body_parser_1.default.json()(req, res, next);
}
});
When making this change, the issue is resolved.