[Migration] How to Migrate File Storage from AWS S3 to Cloudflare R2 Without Breaking Links

Dear Nocobase Team and Community,

We are planning a migration of our Nocobase file storage and need guidance to ensure a smooth transition.

Current Setup:

  • We are using the AWS S3 plugin to store all file attachments.
  • Our storage destination is an AWS S3 bucket .

Goal:

  • We want to migrate all existing files and configure Nocobase to use Cloudflare R2 for all new file uploads.

Issues Faced

  • I tried to migrate all data from AWS S3 bucket to Cloudflare R2 and then delete the AWS S3 Credentials from S3 Pro* Plugin in Nocobase and add Cloudflare R2 credentials but all attachments were broken even when I add AWS S3 credentials again it didn’t work…