Maximum file size in a Smart Action field "File"

Expected behavior

I would like to be able to increase the file size limit in a File field of a Smart Action

Actual behavior

When I configure a Smart Action with a File field, I don’t see the possibility of choosing the maximum file size. Is it currently possible?

Thank you.

Hi @marc!
Welcome in the Forest community!

Do you confirm that you created a admin api microservice using Lumber CLI?
What is the current file size limit you observe by default?

Thanks for your help.

POST /forest/actions/upload-image 413 3824 - 7.539 ms
PayloadTooLargeError: request entity too large

This is the backend log when i upload a image of 1MB

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 helps.


Yes!! Thank you so much.