=== SmartSync Lite - Offload media cloud storage using AWS S3, Digital Ocean Spaces ===
Contributors: infinitietech, jaysparmar
Tags: aws, s3, sync, media, offload
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

SmartSync Lite makes it incredibly easy to offload your WordPress media library to Amazon S3 or DigitalOcean Spaces—no technical expertise required! The plugin automatically sets up your cloud storage for you, so you can focus on your content while SmartSync handles the heavy lifting. Save server space, speed up your site, and enjoy peace of mind knowing your media is safe in the cloud. If you want even more power—like Google Cloud Storage or Cloudflare R2 support, or advanced CDN and asset syncing—check out our [Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)!

== Description ==

SmartSync Lite makes it incredibly easy to offload your WordPress media library to Amazon S3 or DigitalOcean Spaces—no technical expertise required! The plugin automatically sets up your cloud storage for you, so you can focus on your content while SmartSync handles the heavy lifting. Save server space, speed up your site, and enjoy peace of mind knowing your media is safe in the cloud. If you want even more power—like Google Cloud Storage or Cloudflare R2 support, or advanced CDN and asset syncing—check out our [Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)!

SmartSync Lite is built for creators, bloggers, and businesses who want a hassle-free way to store their WordPress media in the cloud. With just a few clicks, you can connect your site to Amazon S3 or DigitalOcean Spaces, and SmartSync will automatically create and configure the necessary cloud resources for you. No need to manually set up buckets or worry about permissions—the plugin takes care of it all.

Every time you upload images, videos, or other files, SmartSync Lite seamlessly syncs them to your chosen cloud storage. This not only saves valuable server space but also helps your website load faster for your visitors.

Want to unlock even more? The [Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604) adds support for Google Cloud Storage and Cloudflare R2, plus advanced features like Amazon CloudFront CDN integration and JS/CSS file syncing. [See all Pro features](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)

### What's included in SmartSync Lite?
- **Amazon S3 Integration** – Connect your WordPress site to your own S3 bucket. Media uploads are automatically offloaded and managed in the cloud. The plugin can even create the S3 bucket for you if it doesn't exist.
- **DigitalOcean Spaces Integration** – Prefer DigitalOcean? No problem! Easily link your Spaces account and enjoy the same seamless media offloading, with automatic setup handled by the plugin.
- **Effortless Setup** – Just enter your AWS or DigitalOcean credentials and you're ready to go. SmartSync Lite takes care of all the technical details, so you don't have to.
- **Automatic Sync** – Every time you upload media, SmartSync Lite moves it to the cloud and keeps everything in sync.
- **Error Tracking & Management** – Stay informed with clear error messages and sync status, so you always know your files are safe.
- **Reset to Default** – Quickly restore default settings if you ever need a fresh start.

### Pro Features:
- Google Cloud Storage integration [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)
- Cloudflare R2 integration [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)
- Amazon CloudFront CDN integration [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)
- JS and CSS file synchronization [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)
- And more! [Unlock all features](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)

#### Why use a CDN?
A Content Delivery Network (CDN) like CloudFront (available in the [Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)) can dramatically boost your website's speed and reliability. By serving your media files from servers located around the world, a CDN ensures that your visitors always get the fastest possible load times—no matter where they are. This reduces server load, improves SEO, and creates a better experience for your users. With SmartSync [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604), enabling CDN is as simple as flipping a switch!

== Installation ==
1. Download the plugin .
2. Install it via **Plugins > Add New** in WordPress.
3. Activate the plugin through the **Plugins** menu in WordPress.
4. Navigate to **SmartSync Settings** and enter your **AWS IAM Key & Secret**.

== How It Works ==
1. **Resource Check** – Ensures Amazon S3 is properly set up.
2. **Automatic Setup** – Creates required AWS resources if they do not exist.
3. **Synchronization Management** – Monitors and logs file sync status and errors.

== How to Generate AWS IAM Keys ==
1. Log in to the [AWS Management Console](https://aws.amazon.com/console/).
2. Navigate to **IAM (Identity and Access Management)**.
3. Click **Users** → Select or create a user.
4. Go to the **Security credentials** tab.
5. Click **Create access key** → Copy and store the keys securely.

> **Permissions Required:**
> - Amazon S3 (Full Access)
> - Any additional permissions required based on your setup.

== How to Generate DigitalOcean Spaces Access Keys ==
1. Log in to your [DigitalOcean Control Panel](https://cloud.digitalocean.com/).
2. In the left sidebar, click **Spaces**.
3. Click **Manage Keys** at the top right.
4. Click **Generate New Key**.
5. Enter a name for your key and click **Create Access Key**.
6. Copy and store your Access Key and Secret Key securely—you'll need them to connect SmartSync Lite.

> **Permissions Required:**
> - Spaces (Full Access)
> - Any additional permissions required based on your setup.

== Benefits of Using S3  or other cloud storage ==
- Faster page loads with media offloading.
- Reduces server load by offloading media storage.
- Enhanced security with AWS Shield.

== Frequently Asked Questions ==
= Does this plugin support multi-region S3 buckets? =
Yes, the plugin allows you to configure S3 buckets in different AWS regions.

= Is CloudFront mandatory? =
No, CloudFront is a [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604) feature. The Lite version works with S3 alone.

= Can I use DigitalOcean Spaces with the free version? =
Absolutely! DigitalOcean Spaces integration is included in SmartSync Lite. Just enter your credentials and you're ready to go.

= Do I need to manually create S3 buckets or Spaces? =
No, SmartSync Lite can automatically create and configure your S3 buckets or DigitalOcean Spaces for you during setup.

= What happens if my cloud credentials are incorrect? =
The plugin will show a clear error message and will not attempt to sync files until valid credentials are provided.

= Will my existing media files be offloaded automatically? =
SmartSync Lite will offload new uploads automatically. For existing files, you can use the bulk sync option in the [Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604).

= How does using a CDN improve my site? =
A CDN (available in [Pro](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604)) serves your media from servers closer to your visitors, making your site load faster and reducing server load.

= Is my data secure? =
Yes, your files are stored securely in your own cloud account. The plugin does not store or transmit your credentials anywhere else.

== Screenshots ==
1. **SmartSync Dashboard** – View sync status and settings.
2. **AWS Integration Panel** – Enter IAM credentials for authentication.

== Changelog ==
= 1.0 =
- Initial release with S3 support.

== Upgrade Notice ==
= 1.0 =
- First stable version.

== License ==
This plugin is licensed under **GPLv2 or later**.
For details: [GNU GPL v2](https://www.gnu.org/licenses/gpl-2.0.html).

== Localization ==
To generate a `.pot` file for translations, run:
```sh
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar i18n make-pot . languages/wp-smartsync.pot --exclude=vendor

== External Services ==

This plugin connects to third-party cloud storage services to manage file uploads, synchronization, and asset delivery. The services used are:

AWS (Amazon Web Services)

This plugin integrates with AWS S3 and related APIs for storing and retrieving media assets and configuration data.

- Data Sent: Bucket name, region, access credentials (user-supplied), and file metadata.
- When: During initial configuration, file uploads, or API-based operations.
- Terms: https://aws.amazon.com/service-terms/
- Privacy Policy: https://aws.amazon.com/privacy/

Cloudflare R2 ([Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604))

Cloudflare R2 is used to store media files and access them via Cloudflare's object storage API.

- Data Sent: Bucket name, region, access credentials (user-supplied), and file metadata.
- When: When configured and used for uploads, downloads, or deletions.
- Terms: https://www.cloudflare.com/terms/
- Privacy Policy: https://www.cloudflare.com/privacypolicy/

DigitalOcean Spaces

DigitalOcean Spaces provides cloud object storage for files uploaded via the plugin.

- Data Sent: Space name, region, access credentials (user-supplied), and file metadata.
- When: When performing file uploads or configuring DigitalOcean Spaces storage.
- Terms: https://www.digitalocean.com/legal/terms
- Privacy Policy: https://www.digitalocean.com/legal/privacy-policy/

Google Cloud Storage ([Pro version](https://codecanyon.net/item/wp-smartsync-wordpress-plugin-for-media-assets-cdn-cloud-storage/56335604))

The plugin optionally integrates with Google Cloud Storage or Google APIs for storing, syncing, or managing user media files.

- Data Sent: Bucket name, access credentials (user-supplied), file metadata, and API requests based on plugin functionality.
- When: When the Google storage option is configured and used for upload/download operations.
- Terms: https://cloud.google.com/terms/
- Privacy Policy: https://policies.google.com/privacy