Problem uploading videos of more than 5mb to Digital Ocean

System Information
  • Strapi Version: 3.6.8
  • Operating System: Ubuntu 20.04
  • Database: Mongodb
  • Node Version: 14.18.1
  • NPM Version: 6.14.15
  • Yarn Version: 1.22.5

We have experience problems uploading videos of more than 5mb to digital ocean spaces.

We have already tried to modify maxFileSize with formidable, as metioned in strapi docs: Upload - Strapi Developer Documentation, but it does not seems to be the problem.

The Content-Type of these videos is text/html, so we do not know if it is problem with digital ocean or the upload provider, which is “strapi-provider-upload-do”.

Any idea of what could be the problem?

Thank you very much in advance.

We have just recieved an answer from digital ocean support team and we have the solution.

The problem was the upload provider. Instead of using “strapi-provider-upload-do”, use “strapi-provider-upload-digitalocean-advanced-config”. Just create folder inside extensions like: extensions/upload/config/settings.js, and then just put this code:

module.exports = {
provider: “digitalocean-advanced-config”,
providerOptions: {
key: process.env.DO_SPACE_ACCESS_KEY,
secret: process.env.DO_SPACE_SECRET_KEY,
endpoint: process.env.DO_SPACE_ENDPOINT,
space: process.env.DO_SPACE_BUCKET,
folder: “” ,
tagFilename: “” ,
cdn: false
}
}