Don't report omitted files as attached.

Ignore files with error=4 (no file uploaded).

Add a test for attached files.