Hi PaulARLowe,
If the code use in a <from> and do a post back to submit the data, then you need to generate the attachment table by some code.
Please refer to example page "ajax-attachments.php", it shows you how to generate the attachment table.
Regards,
Ken