Upload media to digitalocean spaces using strapi v4

Hi All, There was an update to the AWS-s3 provider in the latest version of Strapi (4.4.7). This was specifically to solve a problem with the https:// protocol being dropped on larger video files. I have also added a repository to my personal GitHub account that has a basic project setup for DO app platform and DO spaces. See the ./config/env/production directory for most everything you need. In the DO AppPlatform you need to set the env variables. I think I ended up with 10-12 but reply if you have any issues.

  • One change is in the security middleware there need to be two different allowed addresses because DO doesn’t serve them in a consistent format:
'*.fra1.digitaloceanspaces.com',
 'fra1.digitaloceanspaces.com',

(edit to add) You need to change fra1 to whatever your Spaces server is (e.g. nyc1, ams2, lon1)

Here is the GitHub repo

2 Likes