diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bbcc8dca5e0e3c9d15f99ce28f35e87f9ce37da..4dbfee63c8f6352e999f78ed9e21c32fc43fa53f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), * Remove deprecated support for restricting uploads to certain mime types. * Remove deprecated support for `forUploads`. +* Clarified what `uploads.minBytes` is intended to be used for. ### Fixed diff --git a/config.sample.yaml b/config.sample.yaml index 81a634d0b52dedd208a52b00cb400b70882e3c4a..57ec20a4c0043c7f325514ce73e29fe05aff277b 100644 --- a/config.sample.yaml +++ b/config.sample.yaml @@ -197,7 +197,10 @@ archiving: uploads: maxBytes: 104857600 # 100MB default, 0 to disable - # The minimum number of bytes to let people upload + # The minimum number of bytes to let people upload. This is recommended to be non-zero to + # ensure that the "cost" of running the media repo is worthwhile - small file uploads tend + # to waste more CPU and database resources than small files, thus a default of 100 bytes + # is applied here as an approximate break-even point. minBytes: 100 # 100 bytes by default # The number of bytes to claim as the maximum size for uploads for the limits API. If this