string addAttach = listService.AddAttachment(ListGuid, "62", fileName, contents);
In this case, I used a literal string for the ID field value for demo purposes. In my WSS 3.0 list, there exists a field called ID of type "Counter". It has the "Primary Key" column set to true. I think it gets generated when you create the list.
The "ListGuid" looks something like this: A17L9B44-8435-2C13-DA46-B2BD87036347X
The file name is the contents of the TextBox field and the contents.
The contents is an array of bytes and was generated using the code in the example.
I hope this helps.
Regards,
Jason.