UINV-108 reports that large file uploads crash the browser. I verified that this is also an issue when using the API directly. When I tried this against folio-testing, mod-invoice became unusable and started complaining about insufficient heap space. A module restart was required.
An easy solution to this is to define and enforce a size limit for invoice documents. The arbitrary limit of 20MB has been chosen for now.
When a user attempts to upload a document larger than the limit, return an appropriate error message/code.
It's ok to hardcode this limit for now.
See https://issues.folio.org/browse/UINV-109 for additional details.
- A document size limit is enforced
- Appropriate error message/code is returned when the limit is exceeded
- A note is added to the RAML and/or README indicating this limit.