How to add custom fields to Media / Assets

Thank you,

i tried that, restarted, but i see no effect. Is there something missing?

EDIT: i toyed around and try to delete an existing field, e.g.:

delete strapi.contentType("plugin::upload.file").attributes.alternativeText

This results in the field still be there, just empty. That looks very like the form in the asset library is hard-coded and does not support custom fields. :worried: