Specify post ID when using wp_enqueue_media() to set up correctly for the post being edited.

wp_enqueue_media() requires the Post ID to be passed as a parameter.

Without this the 'Uploaded to this post' option was not working in the media modal for my custom post type.

This fixes the issue.