Strapi REST Documentation (plugin) exclude paths doesn't work

I’ve tried to exclude upload files path from the generation of the documentation following the strapi docs but it doesn’t work

Here’s my code (src/index.ts):

export default {
  register({ strapi }) {
    if (strapi.plugin('documentation')) {
      const override = {
        info: { version: '1.0.0' },
      }

      strapi
        .plugin('documentation')
        .service('override')
        .registerOverride(override, {
          pluginOrigin: 'upload',
          excludeFromGeneration: ['upload'],
        });
    }
  },

  bootstrap() {
  },
};

I’ve tried also the simple version but still doesn’t work.

This topic has been created from a Discord post (1215949813623951440) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord