I can't blame medieval scholars for believing that flies spontaneously generated from things like raw meat (instead of reproducing). I would guess that fruit flies played a major role in supporting this theory.
Yep, that's right. That's when the flies infect the produce.