Update: it might be an issue with the flash uploader. After disabling flash files get attached on the email with no problems, although I still get unkown upload error somtimes.
How do I resolve this?