I would do a custom message for this. It's likely that if it hits this path, it's because it's malformed. A user probably needs to know that versus "wtf? It says .docx!?!?"