WordPress: Attach media without autosaving post first
===

I'm using wp_editor to allow users to use the media uploader. I'd like to avoid creating an auto-save of the post, but the problem is that attachments have no post_id to attach to.

I was wondering if there was a way to assign attachments to my post only after it's been saved.

Could I pass a temporary ID to the attachment to identify it when the post is saved? Or maybe grab the attachment ID after it's been uploaded?

Your ideas are appreciated!