Added support for attachement upload, included utils class.