Add mongose support and builds file upload