Hide image attributes

System Information
  • Strapi Version: 3.4.1
  • Database: SQLLite
  • Node Version: v12.16.1
  • NPM Version: 6.14.8

Is possible to hide attributes from media (uploaded img) like hash & ext?

Thank you

Hey @maimou :wave:,

Yes, you have a couple of options to do that, you could modify the core controllers of the content type, to filter it out before returning it.

Or you could create an custom middleware that filters the extra fields.

Or you could overwrite the strapi-plugin-upload package with plugin extensions to overwrite and customize the behaviour of the plugin. Not sure where to start looking to (partly) modify the plugin.

I hope this helps you out :+1: If you do choose the last option and it’s a simple fix let me know, maybe this is something that could be configurable by default. (Feel free to put in your own PR)

Also do note the warning in the docs about using extensions. :warning: