When flies feed on waste, they collect pathogens on their legs and mouths. These pathogens are then transferred to food on tables or counters when a fly lands again. Flies regurgitate on solid food then they eat the liquid. They are capable of transmitting disease when they vomit, groom themselves or just walk on surfaces.