Royal Server leverages Kestrel, the cross-platform web server included with ASP.NET Core, to handle its web server functionality.
When interacting with the Document Store—specifically during document load or save operations—users may encounter size limitations. These occur because documents are transferred via HTTP through the Royal TS/X client, involving a download (when loading) and an upload (when saving).
By default, Kestrel imposes a limit on the maximum request body size, which can restrict the size of documents that can be uploaded. To allow larger documents, you can configure the MaxRequestBodySize property in the Kestrel server settings within the appsettings.json:
This file can be found at
%programdata%\royalserver\appsettings.json
Please include a new configuration section in the appsettings.json file:
{ "Kestrel": { "Limits": { "MaxRequestBodySize": 104857600 // 100 MB } } }
Restart Royal Server after changing the config file.
To find out how big this number should be: a saved .rtsz file will be roughly 33% bigger when loaded/sent to Royal Server since its base64 encoded.
Remark: This works for Royal Server V4 and newer.