How to limit the file upload size?

How to limit the file upload size to 8MB in the web.config?
How will the exception be reported to the user in case he exceeds the limit set in the web.config ?

See https://origam.com/doc/display/architect/web.config+Configuration – Request Limits. The error message should be user friendly.

The error is written to the log but not shown to the user ! The user does not get any message. The user will not know about the error and he will save the entity in Origam thinking that he uploaded the document and in the worst case can delete his local file !

The exception is written only to the server log.
2016-02-09 17:10:58,379 [5336] ERROR Origam.Server.BlobUploadHandler [(null)] - Maximale Grösse des Anhangs hat (8092 bytes) überschritten.
System.Web.HttpException (0x80004005): Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.GetMultipartContent()
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.EnsureForm()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.FillInParamsCollection()
at System.Web.HttpRequest.GetParams()
at System.Web.HttpRequest.get_Params()
at Origam.Server.BlobUploadHandler.ProcessRequest(HttpContext context)

What is the way of uploading? Through attachments, blob widget…?

Sorry, I can see it from the stack trace. It is a blob widget.

Solution is in build 2015.4.0.132.