Mercurial > hg > orthanc
changeset 6681:8c6580e9b5f6
increased MaximumFileSizeInArchiveMB & MaximumRequestBodySizeMB
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Tue, 07 Apr 2026 18:17:56 +0200 |
| parents | 8abfd5ba48b4 |
| children | 299a925d3006 |
| files | NEWS OrthancServer/Resources/Configuration.json OrthancServer/Sources/main.cpp |
| diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Tue Apr 07 14:28:24 2026 +0200 +++ b/NEWS Tue Apr 07 18:17:56 2026 +0200 @@ -37,9 +37,9 @@ grouped per series and ordered by their InstanceNumber instead of using a random order in previous Orthanc versions. * New configuration option "MaximumRequestBodySizeMB" to limit the body size in HTTP requests. - Default value is set to 2GB. + Default value is set to 8GB. * New configuration option "MaximumFileSizeInArchiveMB" to limit the file size in ZIP/gzip archives. - Default value is set to 512MB. + Default value is set to 4GB. * New experimental configuration "PatientLevelEnabled".
--- a/OrthancServer/Resources/Configuration.json Tue Apr 07 14:28:24 2026 +0200 +++ b/OrthancServer/Resources/Configuration.json Tue Apr 07 18:17:56 2026 +0200 @@ -1119,13 +1119,13 @@ // Maximum allowed size (in MB) of the body of an HTTP request (POST // or PUT), to prevent resource exhaustion. A value of "0" means no // limit (default in Orthanc <= 1.12.10). (new in Orthanc 1.12.11) - "MaximumRequestBodySizeMB" : 2048, + "MaximumRequestBodySizeMB" : 8192, // Maximum allowed size (in MB) of a single file after decompression // when it is contained in a ZIP or gzip archive, to prevent resource // exhaustion by ZIP/gzip bombs. A value of "0" means no limit (this // was the default in Orthanc <= 1.12.10). (new in Orthanc 1.12.11) - "MaximumFileSizeInArchiveMB" : 512, + "MaximumFileSizeInArchiveMB" : 4096, // When set to false, this option disables all /patients routes and // disables patients related sanity checks when performing resource
--- a/OrthancServer/Sources/main.cpp Tue Apr 07 14:28:24 2026 +0200 +++ b/OrthancServer/Sources/main.cpp Tue Apr 07 18:17:56 2026 +0200 @@ -1129,7 +1129,7 @@ httpServer.SetRequestTimeout(lock.GetConfiguration().GetUnsignedIntegerParameter("HttpRequestTimeout", 30)); // New in Orthanc 1.12.11 - const unsigned int maxBodySize = lock.GetConfiguration().GetUnsignedIntegerParameter("MaximumRequestBodySizeMB", 2048); + const unsigned int maxBodySize = lock.GetConfiguration().GetUnsignedIntegerParameter("MaximumRequestBodySizeMB", 8192); if (maxBodySize != 0) { LOG(WARNING) << "Limiting the maximum body size in HTTP requests to " << maxBodySize << "MB"; @@ -1141,7 +1141,7 @@ LOG(WARNING) << "No limit on the maximum body size in HTTP requests"; } - const unsigned int maxSizeInArchive = lock.GetConfiguration().GetUnsignedIntegerParameter("MaximumFileSizeInArchiveMB", 512); + const unsigned int maxSizeInArchive = lock.GetConfiguration().GetUnsignedIntegerParameter("MaximumFileSizeInArchiveMB", 4096); if (maxSizeInArchive != 0) { LOG(WARNING) << "Limiting on the maximum file size uncompressed from ZIP/gzip archives to " << maxSizeInArchive << "MB";
