Support disabling per project upload path

Often there is a single attachments folder for all folders. In such case,
it would be useful to disable the upload path field showing up for each project.
This allows the administrator to set one path to be used for all projects.

Fixes #17826