strapi-provider-upload-azure-storage-fileshare
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Strapi Provider Upload @azure/storage-fileshare

Strapi provider for image uploading to Azure using @azure/storage-fileshare.

NpmVersion NpmDownloads

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • Node 10+
  • npm 6+
  • strapi@3.0.0-beta.16+

Installing

Inside your strapi project run the following

yarn add strapi-provider-upload-azure-storage-fileshare

# or

npm install strapi-provider-upload-azure-storage-fileshare --save

Usage

Strapi version >= 3.0.0

With a stable release of Strapi 3.0.0, the configuration was moved to a JavaScript file. Official documentation here.

To enable the provider, create or edit the file at ./config/plugins.js.

This is an example plugins.js file for Azure storage:

module.exports = ({ env }) => ({
  upload: {
    provider: 'azure-storage-fileshare',
    providerOptions: {
      account: env('STORAGE_ACCOUNT'),
      accountKey: env('STORAGE_ACCOUNT_KEY'),
      serviceBaseURL: env('STORAGE_URL'),
      shareName: env('STORAGE_SHARE_NAME'),
      connectionString: env('STORAGE_CONNECTION_STRING'),
      defaultDirectory: 'assets',
    }
  }
});

Either supply the account and accountKey or the connectionString serviceBaseURL is optional, it is useful when connecting to Azure Storage API compatible services, like the official emulator Azurite. serviceBaseURL would then look like http://localhost:10000/your-storage-account-key.
When serviceBaseURL is not provided, default https://${account}.file.core.windows.net will be used.

Contributing

Contributions are welcome

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • strapi.io
  • Azure

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    2
  • 0.1.0
    0

Package Sidebar

Install

npm i strapi-provider-upload-azure-storage-fileshare

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

14.2 kB

Total Files

8

Last publish

Collaborators

  • ntegral