strapi-provider-upload-digitalocean-advanced-config
v0.2.14
Published
Digital ocean spaces provider for Strapi upload plugin with advanced configuration.
Downloads
9
Maintainers
Readme
strapi-provider-upload-digitalocean-advanced-config
This has been tested with [email protected]. It is not possible to use empty fields with strapi so please just add an empty string " ", if you wish to leave the field empty.
There are some inconsistencies with DigitalOcean regarding the data.Location URI returned. If filesize < 5Mb DNS-style "https://fra1.digitaloceanspaces.com" else regular style "mydomain.fra1.digitaloceanspaces.com". I have tried to solve this rewriting the data.Location URI and contacted support by digitalocean.
Configurations
You can edit the following fields.
Api access keys from digitalocean:
Key: API_key
Secret: API_secret
Endpoint URL configurable, example: "https://mydomain.fra1.digitaloceanspaces.com". Copy this URL from Digitaloceans spaces endpoint:
Endpoint: Endpoint_URL
Spaces, example: "mydomain.com". This is the root folder within spaces that can also be accessible by URL. Needs to be a domain. Cannot be just "mydomain":
Space: Space_URL
It is possible to add a subfolder/s within the root folder. IMPORTANT: End path with "/". For no folder please add " "(space):
Folder: Path of folder/s
Tag a filename. Example _mydomain results to (hash)_mydomain(file-extension). For empty please add " "(space):
tagFilename: Filename_text
CDN choose if you use a CDN:
CDN: true/false
Thanks
This is a fork from https://github.com/AdamZikmund/strapi-provider-upload-digitalocean Thank you Adam Zikmund
Bugs
I am happy if you report back bugs. This is my first package to npm, so I have lots to learn from you friends.