File upload value(s)

I’m strugging finding how to get a file upload value.
I’m building a post content based on several fields, including file uploads. Doing something like this:
$gif = rgar( $entry, ‘29’ );
$post_content=’

’;
$post_data[‘post_content’]=$post_content;
The issue is I do have the image file url BUT it adds |:||:||:| at the end. And I guess I’m also having issues to get multiple files if multiple files have been uploaded.
Thanks for your help.

Nevermind I got it…

gallery = rgar( $entry, '7' );
$list_images = stripslashes($gallery);
$images = json_decode($list_images, true);

Thank you for the update!