How to update post meta on uploaded image from a custom form?

How to update post meta on uploaded image from a custom form?

tech