How can I make some attributes of the File resource private?

At first I thought maybe I can extend the upload controller to achieve this (@see Controllers | Strapi Documentation), I didn’t really understand it, but I think it’s related to extending the endpoints themselves, and not modify attribute settings.