0.2.2 • Published 3 years ago

strapi-plugin-database-storage v0.2.2

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

Strapi plugin database-storage

How to install

# using yarn
yarn add strapi-plugin-upload-database

# using npm
npm install strapi-plugin-upload-database --save

Configuration

You need to update the upload section of your config/plugins.js file in order to use this plugin :

Example

module.exports = ({env}) => {
  return {
    upload: {
      provider: 'database',
      providerOptions: {
        absoluteUrl: true
      }
    },
    // ...
  };
};

Provider Options

In the config/plugins.js you can configure this provider using the providerOptions attribute :

VariableTypeDescriptionRequiredDefault
absoluteUrlbooleanShall we store files with absolute url to strapi or relative onenotrue

Permissions

If you want to access images uploaded using this plugin directly from a <img> markup, you need to update strapi public permission.

To define this permission, on your strapi admin page, go to Settings > Users & permissions plugin > Roles > Public and check the Database Storage > get permission :

permissions

Links

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago