implemented error messages for attachment uploader

Before, if a file does not meet the requirements like not being
a pdf file, "nothing" happens. Now an error message appears letting
the user know about the error.

I've also added a new filter to only allow users to upload files that
are 25MB or smaller.