Attachments can be limited to a certain size file, chosen by the person who set up the forum.
Sometimes it is possible to upload a file larger than this size, but the file will not be saved on the server and you might see an error.