dss-web / ninjaforms-uploads-azure Goto Github PK
View Code? Open in Web Editor NEWAdd support for offloading Ninja Forms Uploads to the Microsoft Azure cloud.
License: MIT License
Add support for offloading Ninja Forms Uploads to the Microsoft Azure cloud.
License: MIT License
Currently there are calls to use NF_FU_*
classes (for example use NF_FU_Fields_Upload
which is being extended by the plugins own Fields_Upload
class), but since the code is namespaced, these are looked for within the currently active namespace, where the classes do not exist since they belong to a different plugin.
Classes that are not explicitly covered by the plugins autoloader need to be declared as part of the global namespace (prefixed with \
), since the autoloader can not be built on each site that uses the plugin, and therefore has no guarantee that it will find the class otherwise, leading to fatal errors.
There are currently hardcoded, but commented out, connection strings. These should not be here, as they contain API keys, if even for a test environment.
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).
Currently the plugin is not fully compliant with the coding standards, as defined by composer run lint
.
Currently there's a short text identifying a test-string to use for a local test, we should probably document what software is needed for local testing as well (for example the local Azure Blob Storage test environment).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.