When i attempted to add an unsupported attachment, it failed validation and I received an error for unsupported attachment type, but it still actually made the post without the attachment. It should prevent posting as well on a validation fail for supported file type.