If this is about the Form Example: the moveUploadedFiles function moves the files from a temporary document to the document that was created/ edited. In that function you already know the UNID of the parent document, so it wouldn't be too difficult to add a loop there that creates a child document for every uploaded file.
Mark