Front end post submission form with duplicate type fields

Take a look at this answer and at to store the image as a custom field replace:

update_post_meta($new_post,'_thumbnail_id',$attach_id);

with what ever name you have for you custom field ex:

update_post_meta($new_post,'products_image',$attach_id);

error code: 523