CC-5786: Quota Enforcement in the File Upload API

Tweaked this so it will work on self-hosted instances
Merge branch 'cc-5709-airtime-analyzer' into cc-5709-airtime-analyzer-saas
CC-5786: Quota Enforcement in the File Upload API

Small refactor
Merge branch 'cc-5709-airtime-analyzer' into cc-5709-airtime-analyzer-saas