Ah, I see the other part of the trick is using party_id as cr_items.parent_id.
That can work, and maybe it makes sense for applications where you don't want to relate an upload to more than one object. I don't see why you need any special code though.