Here is the code for an attachment, which allows only one file to be uploaded(at least I think so :)). But, It allows to upload multiple files anyway. This is made as a part. Please, advice. Is this a bug?
Out of curiosity, what happens when you try to upload more than one attachment simultaneously? Do you get an error? Does the upload fail without error? Do the multiple files still get added as if the maximum limit is not respected? Or does only one of the selected files end up being added?