strapi-provider-upload-local-path

3.6.9 • Public • Published

strapi-provider-upload-local-path

Resources

Install

npm install strapi-provider-upload-local-path

Description

This package create possiblilty for use configurable path. The key for this package is to: Package use a copy of code: https://github.com/francoislongatte/strapi-provider-upload-local-folder/blob/master/lib/index.js

  1. Reads the path from the environment variables.

Set Path

You need to add a new property called path to your config/plugins file.

// config/plugins.js
module.exports = ({ env }) => ({
  upload: {
    provider: 'local-path',
    providerOptions: {
      path: env('UPLOADS_PATH')
    },
  },
});

You can rename the environment variables as you like.

Readme

Keywords

Package Sidebar

Install

npm i strapi-provider-upload-local-path

Weekly Downloads

2

Version

3.6.9

License

SEE LICENSE IN LICENSE

Unpacked Size

3.92 kB

Total Files

5

Last publish

Collaborators

  • dusanscensny