How to require media strapi V5

System Information
  • Strapi Version: 5.0.1
  • Operating System: Arch linux
  • Database: SQLite
  • Node Version: v20.17.0
  • NPM Version: 10.8.3

Hi,
if you set required for media attribute, and your content type has disabled draft and publish, you can still save without inserting file to field.

All other attribute types with required attribute works fine. This problem is only if you have draft and publish disabled. If you enable this feature, you can’t publish content without providing file, but you still can save data.
Is there another way how to require files without draft and publish or it’s a bug?

Thanks for advices