strapi-provider-upload-digitalocean-advanced-config

0.2.14 • Public • Published

strapi-provider-upload-digitalocean-advanced-config

This has been tested with Strapi@3.0.0-beta-8. 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.

Resources

Links

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i strapi-provider-upload-digitalocean-advanced-config

    Homepage

    strapi.io

    Weekly Downloads

    0

    Version

    0.2.14

    License

    MIT

    Unpacked Size

    7.73 kB

    Total Files

    5

    Last publish

    Collaborators

    • secretlifeof