1.1.3 • Published 2 years ago

strapi-provider-upload-publitio v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

strapi-provider-upload-publitio

Configurations

See the using a provider documentation for information on installing and using a provider.

Example

/config/plugins.js

If using strapi >= 4.0.0, please use the below config (note V3 or earlier only require the provider name as "publitio"):

module.exports = ({env}) => ({
  upload: {
    config: {
      provider: "strapi-provider-upload-publitio",
      providerOptions: {
        api_key: env("PUBLITIO_KEY"), //REQUIRED
        api_secret: env("PUBLITIO_SECRET"), //REQUIRED
        folder: "FOLDER_NAME",
        folder_id: "Folder ID",
      },
    },
  },
});

Strapi V4 also now requires changing default CSP settings middleware in config/middlewares.js:

module.exports = ({env}) => [
  "strapi::errors",
  {
    name: "strapi::security",
    config: {
      contentSecurityPolicy: {
        directives: {
          "script-src": ["'self'", "'unsafe-inline'"],
          "img-src": ["'self'", "data:", "media.publit.io/file/"],
        },
      },
    },
  },
  "strapi::cors",
  "strapi::poweredBy",
  "strapi::logger",
  "strapi::query",
  "strapi::body",
  "strapi::favicon",
  "strapi::public",
];

Links

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago

0.0.1

3 years ago