had same problems with main image and gallery imagesupload; Solved the upload during the creation of a new product (POST METHOD), but i'm still working on updating an existing gallery (e.g. deleting an image from product gallery but preserving the other ones).
- (tested and working) UPLOAD IMAGES VIA POST METHOD (i.e. CREATING A NEW PRODUCT)
- (still working on it..) UPDATE EXISTING PRODUCT GALLERY VIA PUT METHOD (i.e. deleting an image from the gallery but preserving the other ones)
*here i'm passing only the current existing gallery image that i want to preserve
{
"image_pairs": [
{
"detailed": {
"image_path": "the current image path"
}
}
]
}
This is not working if i pass as image_path the current existing gallery image path BUT it WORKS if I pass fresh new images. I suppose that's because cs cart FIRST deletes all the images into the gallery THEN try to re-upload them following the no-longer-existing-image-path, the images it has just deleted.. -_- ).
Possible solution when updating the product gallery? re-uploading all the images you want to preserve.