Yuck, that brings back horrible memories. Me coming home from a vacation, and my flatmate had forgotten to take out the trash (plastic bags) for two weeks, she had thawed the freezer and thrown all the meat out before that. The bags were on the balcony, in the blazing sun.
Blowfly pops everywhere in the apartment, where there was something like carpet, or possibility to crawl away, there they were.
When I came back, she had just left for her vacation. Spend an awful lot of time cleansing the place, and the balcony. Did not want to sleep there till it was all clean again. Kept a few pops in a glass jar with a lid on it, to see what critters it were.
We had no mice.
When it is hot and humid, there will be maggots. I'm a vegetarian, but in summer, they will be outside in my green trash bin. (probably not blowflies) There is no way to prevent them. I do have all my "edible" trash in a bin outside, away from my house. (There is a small bin I clean everyday in the house, in summer I empty and rinse it more than once a day) Never ever do I want a maggot infestation in my house again.