Uploading images via ACF update_field function

Should anyone come across the same issue, I found that when creating the $gallery_data array I was creating an array of arrays instead of key value pairs, I ended up just running the update_field function inside a foreach with the add_image key value pair created.

$gallery_img_id = rudr_upload_file_by_url($gallery_img["original_path"]);
$acf_gallery_slug = "gallery_image_" . $counter;
$add_image = [ $acf_gallery_slug => $gallery_img_id ];
update_field('gallery', $add_image, $property_id);
$counter++;

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino