Aug 4, 2022 6:43 PM
My company has a couple hundred blog posts with images that sometimes are either pngs or other large images. I wanted to know if there was some option to replace them in bulk. Something like replacing a complete folder full of images or other way to overwrite the current images whitout having to use the "Relace" option individually in each one on the File section of hubspot (or going into each post to change them).
Thanks!
Solved! Go to Solution.
Aug 4, 2022 10:05 PM
Hi @jcporcel Having been through many changes with HubSpot File Manager and seeking similar capabilities, the only way I have found is by breaking all of the images and loading replacements in their place.
Here's what I mean:
Essentially, you prep all of the images you need to replace ahead of time - let's say you have 100 images that you've optimized with tinypng.com and you want to swap them out with the existing files that are in 2 different folders.
I've done this before, but please do a test with a handful of images on a test page before you batch replace hundreds at a time. 🙂
0. Export all files in a zip - this will give you a local copy of the file structure and file names that you can work with
1. the file name and extension of your new files must be identical to what's in File Manager
2. the folder name can't change during this process and you need to sort your replacement files using the same structure
3. open the first folder with images you want to replace and delete them, let's say that's 40 images in the folder, you'd have to go through and only pick out the ones you are replacing (unless you're lucky/smart and are replacing all of them).
4. your images on existing blogs, pages are now broken - so be quick about this next part, you'll want to do these steps back to back
5. in the same folder, load the new images in their place (because you deleted the files with the same name, HubSpot won't automatically append the -1 extension)
6. the blog images will fix themselves because the file is back in its place, it may not recognize the file size change immediately (odd, but true) and you can use the server side cache buster to verify all is good
(add ?hsCacheBuster=257 with random number to end of URL)
7. repeat steps 3-7 for each folder you need to replace images in
As I said before the steps, please test with a smaller set of images so you don't come back and yell at me that it didn't work 😉 I haven't had to do this in several months and with HubSpot things change all. the. time.
Aug 4, 2022 10:05 PM
Hi @jcporcel Having been through many changes with HubSpot File Manager and seeking similar capabilities, the only way I have found is by breaking all of the images and loading replacements in their place.
Here's what I mean:
Essentially, you prep all of the images you need to replace ahead of time - let's say you have 100 images that you've optimized with tinypng.com and you want to swap them out with the existing files that are in 2 different folders.
I've done this before, but please do a test with a handful of images on a test page before you batch replace hundreds at a time. 🙂
0. Export all files in a zip - this will give you a local copy of the file structure and file names that you can work with
1. the file name and extension of your new files must be identical to what's in File Manager
2. the folder name can't change during this process and you need to sort your replacement files using the same structure
3. open the first folder with images you want to replace and delete them, let's say that's 40 images in the folder, you'd have to go through and only pick out the ones you are replacing (unless you're lucky/smart and are replacing all of them).
4. your images on existing blogs, pages are now broken - so be quick about this next part, you'll want to do these steps back to back
5. in the same folder, load the new images in their place (because you deleted the files with the same name, HubSpot won't automatically append the -1 extension)
6. the blog images will fix themselves because the file is back in its place, it may not recognize the file size change immediately (odd, but true) and you can use the server side cache buster to verify all is good
(add ?hsCacheBuster=257 with random number to end of URL)
7. repeat steps 3-7 for each folder you need to replace images in
As I said before the steps, please test with a smaller set of images so you don't come back and yell at me that it didn't work 😉 I haven't had to do this in several months and with HubSpot things change all. the. time.
Aug 5, 2022 10:50 AM
This sounds pretty much exactly what I needed. I thought there was some sort of internal file reference system with ids like in google drive. But if everything is based on file names, this will probably fix our problem. Thanks!
Aug 5, 2022 12:01 PM
@jcporcel nope, no IDs, HS pulls the images in through their URL, which is why the paths and file names can't change.