I need help with a media gallery field {code}

I looked thousands and thousands of videos, posts, and tried many times to make a code, to make an upload button that takes an image to the field of media gallery, nothing more.
my only hope now is the forum.
I know I need to use the array to take the item to the gallery and save the database but I have no idea how to make a short code, so someone who knows about it can make a code for me or at least explain it correctly instead of taking me to a post I’ve already been to

Hi petriell0,

I found a forum post that might just do the trick: