Strapi with OVH Storage

Hello,
With strapi v5, you can use @strapi/provider-upload-aws-s3 with ovh object storage.

pnpm add @strapi/provider-upload-aws-s3

I used the following config in plugin.js

  upload: {
    config: {
      provider: 'aws-s3',
      providerOptions: {
        baseUrl: env('STRAPI_UPLOAD_BASE_URL'),
        rootPath: '',
        s3Options: {
          endpoint: env("STRAPI_UPLOAD_ENDPOINT"),
          credentials: {
            accessKeyId: env('STRAPI_UPLOAD_ACCESS_KEY_ID'),
            secretAccessKey: env('STRAPI_UPLOAD_SECRET_ACCESS_KEY'),
          },
          region: env('STRAPI_UPLOAD_REGION'),
          params: {
            ACL: 'public-read',
            signedUrlExpires: 15 * 60,
            Bucket: env('STRAPI_UPLOAD_BUCKET'),
          },
        },
      },
      actionOptions: {
        upload: {},
        uploadStream: {},
        delete: {},
      },
    },
  },

With the following .env

STRAPI_UPLOAD_BASE_URL = https://<my_bucket_name>.s3.<my_region>.io.cloud.ovh.net
STRAPI_UPLOAD_ENDPOINT = https://s3.<my_region>.io.cloud.ovh.net
STRAPI_UPLOAD_REGION = <my_region>
STRAPI_UPLOAD_ACCESS_KEY_ID = <ovh_object_storage_access_key_id>
STRAPI_UPLOAD_SECRET_ACCESS_KEY = <ovh_object_storage_secret_access_key>
STRAPI_UPLOAD_BUCKET = <my_bucket_name>

Best,