We manage a large number of product images (hundreds) in HubSpot CMS. Periodically, we need to refresh all of these images (e.g., updated photography, branding changes, or product details).
Our workflow outside HubSpot is simple and standard:
- Generate updated images in bulk
- Export them into the same directory structure
- Use the exact same file names and relative paths as the previous versions
In a traditional file-based system or most CDNs, replacing files with the same name in the same path updates what is served, without having to manually relink each image.
In HubSpot, however:
- Each file has its own internal ID and URL.
- If we delete the old file and upload a new file with the same filename, HubSpot treats this as a new asset, with a different underlying URL.
- All existing pages, modules, and templates still point at the old asset.
- The only supported way to keep the same URL is to open each file in Content > Files and click Replace, one by one.
- For teams with hundreds of images, this “click every file and browse for a replacement” process is extremely time‑consuming and not scalable.
This makes routine bulk image refreshes effectively a multi‑day project full of repetitive manual work.
Current behavior
- Files are managed as individual assets with unique IDs and URLs.
- Deleting a file and re‑uploading a new one with the same name does not update the existing references; it creates a new asset.
- To update an image while keeping its URL, users must manually:
- Open Content > Files
- Click a specific file
- Click Replace
- Browse and select the new version
- This must be repeated for every single image that needs updating.
Requested behavior
Add a bulk image/file replacement feature that lets us update many assets at once without manually using “Replace” on each file record.
Some possible approaches (any of these would solve the problem):
-
Bulk “Replace by filename” upload
- Upload a ZIP or folder of files through the Files tool.
- HubSpot compares filenames (and optionally folder paths) against existing files.
- Where matches are found, HubSpot replaces those existing files in place (keeping the same file IDs/URLs).
- No need to open each file detail panel and click Replace.
-
Bulk replace via folder mapping
- Allow users to select a folder in the Files tool and upload a matching folder structure.
- Any matching filenames in that folder (and subfolders) are replaced in place.
- Non‑matching uploads can either create new files or be ignored based on a user setting.
-
API support for scripted bulk replacement
- Provide an API endpoint that allows replacing an existing file asset by ID or by path/filename.
- This would let dev teams script their own bulk replacement processes (e.g., CI/CD pipelines for assets).
-
Optional: Cache/CDN invalidation controls
- When a file is replaced (individually or via bulk), provide an option to immediately purge or invalidate that asset in the CDN, or at least reduce the maximum cache window.
- This would prevent “stuck” old images for hours after a bulk refresh.
Why this matters
- Teams with large product catalogs or asset libraries need to refresh images regularly.
- Manually opening and replacing hundreds of files is not realistic; it wastes days of time and increases the risk of mistakes.
- Standard workflows in other systems (e.g., “same name, same path = new version”) are not available in HubSpot, which makes migration and ongoing maintenance painful.
- A bulk replacement capability would:
- Dramatically reduce time and cost for asset refreshes
- Make HubSpot more viable as a primary CMS/DAM for image-heavy sites
- Reduce user frustration caused by repetitive, error‑prone manual work
Example scenario
- 300 product images are updated for a new season.
- All new files have exactly the same names and directory structure as the previous batch.
- Desired behavior: upload the new batch once and have all references across the site automatically serve the new images (no page/module edits, no per‑file Replace clicking).
Instead, we currently must either:
- Manually click Replace 300 times in the Files tool, or
- Upload new files with different names and manually relink them in pages/modules, which is even more work.
Acceptance criteria (what “Done” looks like)
- I can upload a set of files and have HubSpot automatically replace existing files with matching names/paths, preserving all existing URLs and references.
- The process works for large numbers of files (100+), not just a handful.
- No manual per‑file “Replace” clicking is required.
- After replacement, pages and modules that used the old assets start serving the new versions automatically once cache/CDN has refreshed.