Upload media to digitalocean spaces using strapi v4

I don’t know if this will fix your problem, but you list the config files as .ts but the code is for a javascript project. You should use this code for the config files:

export default ({ env }) => ({
  upload: {
config: {
provider: “strapi-provider-upload-do”,
providerOptions: {
key: env(‘DO_SPACE_ACCESS_KEY’),
secret: env(‘DO_SPACE_SECRET_KEY’),
endpoint: env(‘DO_SPACE_ENDPOINT’),
space: env(‘DO_SPACE_BUCKET’),
folders: [{folderName: ‘courses’, acl: ‘private’}, {folderName: ‘members’, acl: ‘private’}], 
acl: ‘public-read’, // default ACL
},
actionOptions: {
upload: {},
uploadStream: {},
delete: {},
},
},
}
});

Also I have no idea if the folders property is actually supported by DO or the upload provider.