---
title: "Sync WooCommerce Downloadable Products with Their Files Between Stores"
url: "https://wpimportexport.com/sync-woocommerce-downloadable-products-files/"
description: "Copy downloadable WooCommerce products to another store with the file in woocommerce_uploads, download limit and expiry, so downloads work after the sync."
type: post
published: 2026-11-27T15:00:00+00:00
modified: 2026-11-25T18:37:04+00:00
categories: ["Content Sync", "Tutorials", "WooCommerce"]
tags: ["Content Sync", "WooCommerce", "WooCommerce data"]
docs_topics: ["Sync and migration", "WooCommerce"]
---

# Sync WooCommerce Downloadable Products with Their Files Between Stores

A downloadable WooCommerce product, such as an e-book, sheet music or a price list, is two things: the product and the file the customer gets after paying. The file usually sits in the protected `woocommerce_uploads` folder, and the product stores its address. Copy the product to another store and that address points either to the old store or to a file that isn’t there, and since WooCommerce 6.4 a file outside the store’s approved download directories is refused anyway. With **Import Export by RockStarLab** PRO, a product push copies the download file into the other store’s `woocommerce_uploads` folder and points the product at it.

**PRO:** WooCommerce product sync is a PRO feature and needs PRO with a license on both sites. The test below used Import Export by RockStarLab 2.2.13 and PRO 2.1.31.

## Short Answer

Push the downloadable product from Products with **Sync Content**. The file is copied to the other store, into `wp-content/uploads/woocommerce_uploads/`, which WooCommerce approves for downloads by default, and the product’s file URL is changed to it. Download name, download limit and download expiry are copied too. Pushing again doesn’t copy the file a second time.

## The product we pushed

On the source store, the virtual product _Home Brewing Guide (PDF)_ had one download, the PDF in `woocommerce_uploads/2026/11/`, a download limit of 5 and an expiry of 30 days:

![Product data of a virtual downloadable product on the source store with one downloadable file, download limit 5 and expiry 30](https://wpimportexport.com/wp-content/uploads/2026/11/dl-source-downloads.webp)

_The downloadable product on the source store._

In Products we ticked it, clicked **Sync Content**, chose the other store and clicked **Push to Site**. The product was new there:

![Map Posts for Sync dialog with Home Brewing Guide (PDF) set to Create New Post](https://wpimportexport.com/wp-content/uploads/2026/11/dl-map.webp)

_The product is new on the other store._

## What the other store got

After **Confirm & Sync**, the product on the other store was downloadable and virtual, with the same download name, limit and expiry. Its file URL was `http://<other store>/wp-content/uploads/woocommerce_uploads/2026/11/home-brewing-guide.pdf`, and the PDF was in that folder:

![Product data on the receiving store with the same downloadable file name, a file URL on that store, download limit 5 and expiry 30](https://wpimportexport.com/wp-content/uploads/2026/11/dl-target-downloads-raw.webp)

_On the other store the file URL points to its own copy._

WooCommerce > Settings > Products > Advanced > Approved download directories on the other store listed only the `woocommerce_uploads` folder, and WooCommerce accepted the new file URL as approved. A customer who buys the product on the other store gets a working download.

| Downloadable product data | On the other store after the push |
| --- | --- |
| File in the Media Library (any folder) | Copied into `woocommerce_uploads`; URL points to it |
| Download name | Copied |
| Download limit and expiry | Copied |
| Virtual / Downloadable checkboxes | Copied |
| Second push of the same product | No second copy of the file |

## Things to know

- The plugin sends files from the source store’s Media Library, which is where **Choose file** on the product puts them. A file uploaded by FTP joins in after one step with Media Sync from the same plugin (see [PDFs uploaded by FTP](https://wpimportexport.com/sync-pdf-file-links-in-posts-between-sites/)).
- Files hosted on Amazon S3 or another external host keep their URL, so the copy downloads from the same place; add that host to the other store’s approved download directories.
- Image files used as downloads stay in the regular uploads folder, so WooCommerce needs that folder approved for downloads; for PDFs, ZIPs and other files the move to `woocommerce_uploads` happens automatically.

As before any push, [back up the store you push to](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), or ask your AI agent to start the backup.

## With an AI agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see [connecting Claude Code to WordPress](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)). With it, one request is enough:

```
With Import Export by RockStarLab, on this store, is the product with SKU EBOOK-BREW downloadable, and is it virtual?
```

In our check, the agent called WooCommerce’s `woocommerce/products-query` ability with the SKU. It returned the product with `downloadable: true`, `virtual: true` and the price 6.00, the same as on the source store.

## FAQ

### Are downloadable product files copied when I sync WooCommerce products?

Yes. A file from the Media Library is copied to the other store’s `woocommerce_uploads` folder, and the product points to the copy.

### Why does a copied downloadable product say the file is not in an approved directory?

WooCommerce only serves downloads from approved folders. If a copy tool put the file elsewhere or kept the old store’s URL, it is refused. A product push puts the file in `woocommerce_uploads`, which is approved by default.

### Are download limit and expiry kept?

Yes. Both are copied with the product.

### Can customers who bought on the first store download from the second?

Not through a product push. Download permissions are part of orders, which stay on the store where they were placed.

## Related Guides

- [How to Sync WooCommerce Products Between Two WordPress Sites](https://wpimportexport.com/how-to-sync-woocommerce-products-between-two-wordpress-sites/)
- [PDF and File Download Links After Copying a Post to Another WordPress Site](https://wpimportexport.com/sync-pdf-file-links-in-posts-between-sites/)
- [Grouped Products, Upsells and Cross-Sells After Syncing WooCommerce Products](https://wpimportexport.com/sync-woocommerce-grouped-products-upsells-cross-sells/)
- [WooCommerce Staging to Live Without Losing Orders](https://wpimportexport.com/woocommerce-staging-to-live-without-losing-orders/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
