Control attachment pages

Open Settings → POM Tweaks → Media → Attachment pages and configure Attachment pages.

See Configure uploads and attachment pages for setup, verification, dependencies, and reversal.