The problem is that the ID doesn't exist until after you have posted, so there is no way to pass the ID as form input since it doesn't exist yet... Hence a unique post id other than the primary post_id column. Actually, there already _is_ a temporary ID used for identifying which attachments go with which post, so it shouldn't be too big a modification - just a matter of storing it with the post.
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com