dekode / ninjaforms-uploads-azure
Add support for offloading Ninja Forms Uploads to the Microsoft Azure cloud.
Installs: 69
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Type:wordpress-plugin
Requires
- php: >=7.2
- guzzlehttp/psr7: ~1.8
- microsoft/azure-storage-blob: ~1.5.2
- microsoft/azure-storage-file: ~1.2.4
Requires (Dev)
- dekode/coding-standards: 4.0.0
- dev-main
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/npm_and_yarn/dottie-2.0.4
- dev-dependabot/composer/guzzlehttp/psr7-1.9.1
- dev-dependabot/npm_and_yarn/jsonwebtoken-and-azurite-9.0.0
- dev-dependabot/npm_and_yarn/moment-2.29.4
- dev-dependabot/npm_and_yarn/sequelize-6.31.0
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/qs-and-express-6.11.0
- dev-dependabot/npm_and_yarn/xmldom/xmldom-0.7.8
- dev-dependabot/npm_and_yarn/moment-timezone-0.5.37
- dev-dependabot/npm_and_yarn/async-2.6.4
This package is not auto-updated.
Last update: 2024-12-10 23:57:39 UTC
README
Add support for offloading Ninja Forms Uploads to the Microsoft Azure cloud.
How to use
- Define connection setting (https://site.com/wp/wp-admin/admin.php?page=ninja-forms-uploads&tab=external)
- Switch off 'SAVE TO SERVER' setting on File Upload field.
- Add 'External File Upload' action to form and enable uploading to 'MICROSOFT AZURE'
You can also define constants:
define( 'MICROSOFT_AZURE_ACCOUNT_NAME', '' );
define( 'MICROSOFT_AZURE_ACCOUNT_KEY', '' );
define( 'MICROSOFT_AZURE_CNAME', '' );
The respective settings have priority over constants in this situation.
For more controlled environments, you may also use the following constant to automatically force all use the external Azure storage service when creating forms:
define( 'MICROSOFT_AZURE_FORCE_EXTERNAL_UPLOAD', true );
This constant may not be overwritten by individual settings on your site or sites.
Development
Install NodeJS and run npm install
and npm run azure
to launch development server.
Use local settings:
- Account Name:
devstoreaccount1
- Account Key:
Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
- Blob Service Endpoint:
http://127.0.0.1:10000/devstoreaccount1
Credits
Copyright
Ninja Forms File Uploads to Azure is copyright 2021 DSS
Ninja Forms File Uploads to Azure is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
Ninja Forms File Uploads to Azure is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see http://www.gnu.org/licenses/.