Create Image With Product

i create/update products through the cs-cart api but now im trying to create with the inbuild functions of cs-cart,fn_update_product,the problem is that after i create a product i cant generate an image,i looked through the fn.catalog.php as far as i can tell fn_update_product isnt responsible to create an image with a product i tried to trace what functions beign called through the app/controllers/backend/products.php but the only function beign called is fn_update_product when mode is update.can anyone tell me what im i missing here i have tried to pass my data with different names ex.(myArray['main_pair']['detailed']['image_path'])..etc)

nvm i found it i dont know how to delete this post.

nvm i found it i dont know how to delete this post.

Please share the solution. I believe it will be helpful for other CS-Cart users

actually the fn_update_product is responsible for the images you just have to prepare them(the array have the right keys).if anyone want to see how to prepare the images better see the Tygh\Api\Entities\Products.php function prepareImages....

actually the fn_update_product is responsible for the images you just have to prepare them(the array have the right keys).if anyone want to see how to prepare the images better see the Tygh\Api\Entities\Products.php function prepareImages....

Thank you