Update a product image via woo rest API
-
Hello,
I manage a woocommerce website with the Woo Rest API.
WP and Woo are up to date and using the last Woo Rest API.Everything is working well.
My main problem is when I update a product, the image is not overwriting the existing one. It copy a new file with a “-number” at the end of the file and keeping the old one. It’s ok and quite secure but it’s a big problem for disk space.
In wordpress, we already have for one uploaded image, 3 thumbs : so 4 files.
And in my case, I have this 4 files created for each catalog update. So the upload folder become so huge, that it can crash my server because of lack of space.
How can we properly update a product without having copys of the image, or delete the old image and keep the newest by the Woo Rest API ?
Thanks in advance
- The topic ‘Update a product image via woo rest API’ is closed to new replies.