Upload media to digitalocean spaces using strapi v4

Maybe, not sure if its required.
But go to spaces settings > advanced cors options.
Add an origin: *, with all allowed methods and max age 3000.