A harvesting machine comprising a motorised support structure on which are mounted a harvesting assembly adapted to deliver a stream of harvested produce, at least two receptacles 1 d, 1 g for storage of the stream, and a system for feeding a respective receptacle with the stream. The harvesting machine further comprises a device for determining the location of the harvesting machine in the parcel of land the machine is harvesting, where the parcel is divided into geographical areas, a device for determining the area corresponding to the location, and a device that is adapted, as a function of the determined area to automatically control the feeding system to store the harvested stream coming from the area in the receptacle that is dedicated to it. The feeding system comprises upper conveyors 3g, 3d for feeding the receptacles 1g, 1d on respective feed paths with a harvested stream coming from the harvesting assembly, a lower conveyor 6 for feeding a respective receptacle 1g, 1d as a function of the conveying direction, and a device for guiding the harvested stream that for each feed path, is variable between an open state wherein the stream passes along the feed path, and a closed state wherein the stream is diverted onto the lower conveyor 6. The control device is operable to impose the open or closed state of the device for guiding the stream and the conveying direction of the lower conveyor 6 as a function of the receptacle 1g, 1d to be fed with the stream.