Upload legal docs with AWS S3

Hi, I’m having a problem downloading documents from the admin on Amazon S3. I don’t really understand the error …

Hi @hugo-mori,

This message means you exceeded the file upload size limit:

PayloadTooLargeError: request entity too large

You could have a look to this answer posted by @arnaud:

I think you can configure the default limit in you app.js file.

For instance, if you want to allow 10MB, here is what you need to do:

- app.use(bodyParser.json());
+ app.use(bodyParser.json({ limit: '10mb' }));
- app.use(bodyParser.urlencoded({ extended: false }));
+ app.use(bodyParser.urlencoded({ extended: false, limit: '10mb' }));

Let me know if it fixes your issue (don’t forget to restart your server).