I'm using the new (3.5+) media upload API to open a media modal dialog from a post meta box, and select a file from the media library (as per https://github.com/thomasgriffin/New-Media-Image-Uploader).
I need to control whether or not files uploaded through this dialog are attached to the current post or not. I'm looking through media-views.js and can't see anything to control this. Any ideas?