Filter file attachments from exported posts

This prevents file attachments (usually images) from being exported as posts. A component of #3 that has been isolated.