WP File Download Addon: OneDrive & OneDrive Business Integration
1. Login to OneDrive
Automatic mode
From now, you can save a lot of time while connecting to the OneDrive server. First, in order to use this feature, you have to link your Joomunited account at Menu Settings > General, please click on the WordPress settings link if you have not connected.
Then go back to the settings and just click on Connect OneDrive button for OneDrive Personal or Connect OneDrive Business button for OneDrive Business on the right corner.
Then follow the next steps to finish the connection.
Manual mode
With the credentials in the previous step, please go to WordPress admin and click on the menu WP File Download > Configuration > Cloud Connection tab > Onedrive settings section. Due to technical changes from OneDrive, Manual mode is no longer supported with personal accounts. Paste your
- App client ID
- Secret value
After that, save the configuration and then click on the Connect OneDrive button.
You'll have to validate the access authorization for app access, just click Yes.
The connection should be a success ☺.
With the OneDrive Business, after connecting successfully, you will see the "Watch Changes" button. You should turn it on if you want to synchronize immediately Files and Categories from OneDrive Business to WP File Download.
Then you can create files, categories, and subcategories in OneDrive & in WP File Download, everything will be synchronized!
2. How does it work? What can I do with OneDrive?
How does it work?
WP File download plugin will generate a root folder on your OneDrive with the site name.
All the folders and sub-folders added in WP File Download will be synchronized under this folder (WP File Download - {sitename}). And vice versa, all your files and categories from that root folder on OneDrive will be synchronized to your WP File Download dashboard on Wordpress.
What can I do with OneDrive?
It works in both directions! You can add a file from OneDrive and see it in WP File Download or add a file in WP File Download and see it in OneDrive. It also means you can manage WordPress files from your desktop using OneDrive sync software. That’s crazy! Yes we know ☺
Also if you erase a file from OneDrive you have to empty the Recycle bin to erase it from OneDrive.
3. Microsoft OneDrive Application
The OneDrive integration is distributed as a separate Add-on. It includes OneDrive Personal and OneDrive Business. You need to install this add-on (plugin) additionally to WP File Download. The addon includes integration for Google Drive and Dropbox too. These steps below are applied for both.
First, you need a Microsoft Azure App to connect your website to a OneDrive account. Go to: https://portal.azure.com/, login and click on New registration button.
On Register an application form, setup an app name and copy your website URL into the Redirect URL field and click on the Register button.
Then you're almost done, from here you have an Application ID (Client ID), only the password is missing. On the left menu, go to Certificates & secrets, then click on the New client secret button to create one. After that, fill the Description and set the Expires for it.
A password (Client Secret) is generated right away after pressing on Add button, then remember to make a copy.