Cloudflare R2 Integration
The Cloudflare R2 Integration in Advanced File Manager allows you to connect your WordPress website with Cloudflare’s secure and scalable cloud storage. This feature enables you to upload, manage, organize, and access your files directly from your WordPress dashboard while storing them safely in Cloudflare R2.
It is designed to provide reliable performance and cost-effective storage, making it an excellent solution for websites that handle large volumes of files.
If you haven’t yet upgraded to the Pro business plan, now’s the perfect time! Buy now to unlock this powerful feature and take your file management to the next level. Get the Advanced File Manager Plan!
Enabling Cloudflare R2 Integration in Advanced File Manager
Follow the steps below to connect Cloudflare R2 with your website:
1. Enable Cloudflare R2
- Navigate to WordPress Admin Dashboard > File Manager > Integrations tab.

- In the Integrations, go to the Cloudflare R2 card and click on the toggle to enable the Cloudflare R2 integrations.

- After enabling the Cloudflare R2 , click on the Settings in the Cloudflare R2 card.

- In the Cloudflare R2 Settings, add your custom Alias.

- Now you need to get the following from Cloudflare R2:
- Access Key ID
- Secret Access Key
- Endpoint URL
- Bucket Name
2. Access Cloudflare Dashboard
- Visit the Cloudflare Dashboard and log in to your account.
- If you do not have an account yet, create one before proceeding.

3. Create R2 Bucket
Inside your Cloudflare dashboard:
- Click + Add and select R2 Object Storage.
- Or if you are in R2 Object Storage, click on Create Bucket.

- Enter a unique name for your bucket (for example: my-file-manager-bucket).
- Select the location and default storage type according to your preference.
- Click Create Bucket.

- After creating the bucket, copy the Bucket Name, you will need it during the setup process.

4. Get Endpoint URL
From the R2 overview or bucket settings page:
- Create a Folder or Directory by clicking on the Add Folder or Add Directory button.
- Now, once the directory or folder is created, you can see your directory or folder in the table.

- Now, navigate to the Settings tab.

- In the Settings > General, locate the S3 API in the right side section.
- Copy the Endpoint URL.

Note: Do not include the bucket name in the Endpoint URL.
5. Create API Tokens
To allow secure communication between your website and Cloudflare R2:
- Go to Manage Account > Account API Tokens.
- Click Create API Token.

- Set the required permissions (ensure Read and Write access is enabled).
- Choose the token expiration (for example, No expiration).
- Click Review Token.

- After reviewing the token, click on Create Token.
Note: Once created, copy the Access Key ID Secret Access Key and Endpoint URL immediately, as the Secret Key will not be shown again.

Configure in Advanced File Manager Cloudflare R2 integration
- Return to the Cloudflare R2 Settings in File Manager > Integrations and enter the following details:
- Endpoint URL
- Bucket Name
- Access Key ID
- Secret Access Key
- Click Save Changes.

- You can select the user roles from the User Role Access that is allowed to access the Cloudflare R2 file manager.

- You can also restrict access to the folder, add folder in Private Folder Access.

Managing Cloudflare R2 in File Manager
- Your Cloudflare R2 integration is now successfully configured. You can begin managing your cloud-stored files directly from Advanced File Manager.
- Navigate to the WordPress Dashboard > File Manager.
- You can see the Cloudflare R2 in the tree.

Need Help?
If you encounter any issues during setup, please contact our Support Team. Our experts will troubleshoot your problem and provide a prompt resolution. We are committed to delivering excellent customer service and ensuring a smooth integration experience.