strapi-plugin-database-storage

0.2.2 • Public • Published

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 :

Variable Type Description Required Default
absoluteUrl boolean Shall we store files with absolute url to strapi or relative one no true

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

Readme

Keywords

none

Package Sidebar

Install

npm i strapi-plugin-database-storage

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

9.37 kB

Total Files

38

Last publish

Collaborators

  • yakanet