[v4] uploads alway go to local `/uploads` folder, even though AWS or SFTP config is defined

System Information
  • Strapi Version: 4.0.6
  • Operating System: MacOS Catalina
  • Database: SQLite
  • Node Version: 14.8.3
  • NPM Version: 8.3
  • Yarn Version: 1.22.17

I keep trying to get AWS running, and also SFTP uploads (using strapi-provider-upload-sftp-v2). However, instead of getting an error messages, all files are ALWAYS uploaded to the stapi’s upload folder, on localhost as well as remote.

Upload configuration in saved in /config/plugins as well as in config/end/production/plugins and looks like this:

module.export = ({ env }) => ({
  upload: {
    config: {
      // provider: 'aws-s3',
      // providerOptions: {
      //   accessKeyId: env('AWS_ACCESS_KEY_ID'),
      //   secretAccessKey: env('AWS_ACCESS_SECRET'),
      //   region: env('AWS_REGION'),
      //   params: {
      //     Bucket: env('AWS_BUCKET'),
      //   },
      // },

      // @src: https://forum.strapi.io/t/how-to-use-sftp-upload-provider-in-strapi-v4/14747/3
      provider: 'strapi-provider-upload-sftp-v2',
      providerOptions: {
        host: env('SFTP_HOST'),
        port: env('SFTP_PORT'),
        user: env('SFTP_USER'),
        password: env('SFTP_PASSWORD'),
        basePath: env('SFTP_BASEPATH'),
        baseUrl: env('SFTP_BASEURL')
      },

      breakpoints: {
        xlarge: 1920,
        large: 1000,
        medium: 750,
        small: 500,
        xsmall: 64
      },

      logger: console // Only if you want to `stdout` logs
    },
  },
})

I added wrong credentials to sftp to trigger some kind of error message – but no, files go straight to /uploads.
What am I doing wrong?

It’s module.exportS