our Strapi instance creates in production multiple API Upload-Directories. It seems, that on every restart / deployment a new Upload folder is created.
This problem occurs when using the config-sync plugin which communicates a different id to strapi.
e.g. in dev the API Uploads directory has the id 1, which is persisted in the config’s json file. But in staging it is id 26, which is why it creates a new one, because an api uploads folder with id 1 cannot be found.
We ignored the api upload folder configuration for now:
I’m the creator/maintainer of the config sync plugin and I regularly search the Strapi Forums & Discord on the mention of my plugin to find people having issues with it. That how I found this one.
The exclusion you made should be a default exclusion as the data that is stored in that piece of config is environment specific and does not need to be migrated across environments. I’ll make this change and publish it soon.