jakeFeldman / strapi-provider-upload-azure-storage

Strapi Provider Upload Azure Storage
MIT License
75 stars 42 forks source link

feat: adds createifnotexist option for container #87

Closed fardarter closed 7 months ago

fardarter commented 8 months ago

This PR adds the ability to create a container if it does not exist when attempting to upload, as well as to set the public access type for that container.

This is especially useful when working with Azurite as Azurite has a very limited set of init scripting options.

Can be tested by: a) with correct permissions in place, setting the createContainerIfNotExist param to 'true' and seeing if an otherwise non-existent container comes into being. b) conditional on a), the new container having the publicAccessType of either 'blob' or 'container', depending on what was supplied.

fardarter commented 7 months ago

@jakeFeldman Any chance you could have a look?

jakeFeldman commented 7 months ago

Hey, Sorry for missing this. I'll take a look ASAP.

jakeFeldman commented 7 months ago

@fardarter thanks for the PR. Will publish asap

fardarter commented 7 months ago

@jakeFeldman Thanks!