upload complex type with img