Update ACF Gallery-Field in user meta using Pro Forms (Array structure))

Hi There,

I’ve set up a frontend-form where users can upload images to a gallery in their profile. This gallery is an ACF Gallery-Field in the user meta. Initially it’s working fine, but I wanted to give the opportunity to add new images to the user gallery via frontend. For this I am using the Action ‘Update User Meta’ and as the Update Type I chose ‘Add to Array’ so that the images will be added instead of overwriting the existing ones. Pro Forms is saving the images in a nested array to the database which looks like this:
a:2:{i:0;a:2:{i:0;s:4:“6423”;i:1;s:4:“6424”;}i:1;a:2:{i:0;s:4:“6425”;i:1;s:4:“6426”;}}

But ACF needs a ‘normal’ array – if I was researching right – that shoul look like this:
a:4:{i:0;s:4:“6423”;i:1;s:4:“6424”;i:2;s:4:“6425”;i:3;s:4:“6426”;}

Ist there anything I am doing wrong or is this a feature that isn’t supported yet?
What can I do?

I’d be really glad to get some help on this :slight_smile:

Thanks in advance!