This was left at the default of “1” but the zip is kept on adding to the “temp” folder every time I use curl to download an archive. I thought MediaArchiveSize should limit the number of zip files in the temp folder to just 1. My apologies if my understanding was wrong.
Starting with Orthanc 1.9.4, ZIP archives are by default generated in synchronous mode, which means that by default, no temporary file is created, and “MediaArchiveSize” is not used.
If you don’t use Orthanc Explorer, but instead call the REST API of Orthanc from your application, make sure to use the synchronous version of the “…/media” and “…/archive” to avoid the creation of any ZIP file.