Closed Clorith closed 3 years ago
Perhaps this should also have a fallback, if the options are not defined as a constant, allow the declaration to be done via the File Uploads settings, like the S3 settings?
(found under /wp-admin/admin.php?page=ninja-forms-uploads&tab=external
)
Currently the way to create a connection to Azure requires a rather long handcrafted string which may be easy to get wrong.
Instead I propose we change
DEKODE_NINJAFORMS_AZURE_CONNECTION_STRING
to a set of strings, preferably with a naming convention that suits other Azure plugins that exists in the WP ecosystem.Let's consider using these:
MICROSOFT_AZURE_ACCOUNT_NAME
MICROSOFT_AZURE_ACCOUNT_KEY
MICROSOFT_AZURE_CONTAINER
MICROSOFT_AZURE_CNAME
The
MICROSOFT_AZURE_CNAME
entry may not necessarily be needed here (it is used to represent a site-specific URL that is an alias for the default Microsoft blobstorage URL, so it looks nicer and more familiar to end users).