Adding extension for attachments

This should be filename. I will fix.