enhance upload selector

- Change the icon on the button to a file when attachments are enabled
- Display the list of allowed extensions in the upload selector
- FIX : regexps for validating uploads weren't escaping the dots
Merge pull request #1283 from ZogStriP/enhance-upload-selector

enhance upload selector