Hello Fellow Shopify Devs,
I am moving my WordPress to Shopify, Almost done! yeaay! 
I hired someone to move and format all the 100s of articles manually to the Shopify platform.
After checking all the work, I have realised they copy/pasted the images from the original site, into the Shopify article pages.. (1000s of images) (Images are coming from shop-website.com/wp-content/)
So, once I switch the domain’s DNS of main shop-website.com , to Shopify’s DNS, the images will obviously NOT load… as shop-website.com/wp-content/ does not exist anymore…
Now, it will take ages, to re-do, download, and re-upload all the article images, so I have a “better” idea.
Is it possible I could somehow upload the /wp-content/ directory to Shopify?
OR is there a way I could use CNAME or A Record or something, and host the shop-website.com/wp-content/ somewhere else, so the images still exist?
What is the best approach here?
I would like to have some control over some file downloads too.. and this seems to be a good solution.
Thanks a lot for your help @Shopify_77 folks!
Kind regards
Hello Lisa_code,
Save yourself time and headache by using the File Tool in the Shopify Admin. From your store admin click settings > then click file > then click the upload files button. Find the folder of images > click the top image in the list > hold shift > click the bottom image in the list > click open. It may limit the number you can do at one time, but this should make things very easy.
Clifford MacKay
cmArt Solutions
[email removed]
Also, if you are looking for code, I have an app that pulls images from a database, pushes them to my publicly available azure storage account, and then runs a graphQL query giving Shopify a link to the image so they can import it. And this article also had some potential: https://sftptogo.com/blog/how-to-import-from-ftp-to-shopify-files-using-sftp-to-go/
Thanks for these. However it will still not solve my issue… Because then I will need to go back into each article, and re-import every single image used in the articles… which will take forever..
Hello Lisa_code,
That does make the problem trickier. The only fix I can think of is to use the get articles REST API call (see below) then iterate over each of them first doing a replace on the body_html content replacing the old address with the new Shopify Address then calling the update article REST API call (see below) passing in the edited body. I did a test below and successfully edited an article. You would have to set up paging in your solution as well to make this one work, but it would be a lot easier than editing 1000+ articles.
Let me know if you need help with this as it likely would only take 2-4 hours to do.
Clifford MacKay
cmArt Solutions
cliff@cmart.solutions
www.cmart.solutions
Get articles REST API call: "https://cmart-solutions-demo-store.myshopify.com/admin/api/2022-07/articles.json"
Update article REST API call: https://cmart-solutions-demo-store.myshopify.com/admin/api/2022-07/blogs/90145095983/articles/604441608495.json
Update article REST API Body:
{“article”:{“id”:134645308,“author”:“cnArt me”,“body_html”:“
Hello Edited World
\n
note a link: https://www.cmart.solutions/Shopify
\n
a link: <a href="[cmArt Solutions](cmArt Solutions)”>https://www.cmart.solutions/Shopify
"}}
Thanks a lot for this Clifford.
I have done no API work on Shopify yet. Basically new to Shopify and haven’t got around to reading the docs. So this will take a while to figure out for me. I will try it out though after getting my heard around the docs and API structure on Shopify
Thanks a gain for this! Makes sense.