I have a front-end posting form that users fill-in to submit a post on my site. With it I use 'media_handle_upload' to upload and create the image attachment that is then associated with the post.
I am looking for a way to update the attachment Title, Caption and Description fields. By default it sets Title = file name and Caption & Description are left blank.
I have been unsuccessful in finding the correct function that can be used to change the attachment fields in my code.
TIA