adds crude feature flag support to disable file uploads