Skip to content

strapi-provider-upload-cloudinary - "Error uploading to cloudinary: Server returned unexpected status code - 403" #10825

@Rhym

Description

@Rhym

Cloudinary upload returning 403

Using the upload provider strapi-provider-upload-cloudinary in a fresh install of Strapi and the following config file:

// ./config/plugins.js
module.exports = ({ env }) => {
  return {
    upload: {
      provider: "cloudinary",
      providerOptions: {
        cloud_name: env("CLOUDINARY_NAME"),
        api_key: env("CLOUDINARY_KEY"),
        api_secret: env("CLOUDINARY_SECRET"),
      },
      actionOptions: {
        upload: {
          folder: env("CLOUDINARY_FOLDER_NAME"),
        },
        delete: {},
      },
    },
  };
};

Returns an Error uploading to cloudinary: Server returned unexpected status code - 403 response when I upload a file in the media library admin page (http://localhost:1337/admin/plugins/upload).

Expected behaviour

The image will upload to Cloudinary.

System

  • Node.js version: v14.15.4
  • NPM version: 6.14.10
  • Strapi version: 3.6.8
  • Database: PostgreSQL
  • Operating system: OSX

Additional context

I have tried a different key/secret with no luck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions