After upgrading to Rails 7 (from 5.2) I have been getting the following error when submitting large forms
Error during failsafe response: Maximum total multiparts in content reached
I initially though it was related to this error: Rails 4.2: Internal Server Error with Maximum file multiparts in content reached, but setting the multipart_part_limit has no effect
The answer was to add this into
config.ru:Rack::Utils.multipart_total_part_limit = 0From the docs here: https://github.com/rack/rack/blob/main/README.md#multipart_total_part_limit