An image forming apparatus comprising: a toner supply portion; a waste toner collecting portion; and a toner container configured to be attachable to and detachable from the toner supply portion and the waste toner collecting portion, wherein the toner container includes a first lever configured to be switchable between a first position and a second position, the toner supply portion includes a first actuating portion configured to, during a process in which the toner container is attached to the toner supply portion, act on the first lever disposed at the first position and switch the first lever to the second position, and the waste toner collecting portion includes: a second actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and prohibit an attachment of the toner container, and act on the first lever disposed at the second position and permit an attachment of the toner container; characterized by a stopper member attachable to either a first attachment position or a second attachment position and configured to, in a state of having been attached to the first attachment position, act on the first lever disposed at the second position and prohibit an attachment of the toner container, and in a state of having been attached to the second attachment position, permit an attachment of the toner container in which the first lever is disposed at the second position. a toner supply portion; a waste toner collecting portion; and a toner container configured to be attachable to and detachable from the toner supply portion and the waste toner collecting portion, wherein the toner container includes a first lever configured to be switchable between a first position and a second position, the toner supply portion includes a first actuating portion configured to, during a process in which the toner container is attached to the toner supply portion, act on the first lever disposed at the first position and switch the first lever to the second position, and the waste toner collecting portion includes: a second actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and prohibit an attachment of the toner container, and act on the first lever disposed at the second position and permit an attachment of the toner container; characterized by a stopper member attachable to either a first attachment position or a second attachment position and configured to, in a state of having been attached to the first attachment position, act on the first lever disposed at the second position and prohibit an attachment of the toner container, and in a state of having been attached to the second attachment position, permit an attachment of the toner container in which the first lever is disposed at the second position. a second actuating portion configured to, during a process in which the toner container is attached to the waste toner collecting portion, act on the first lever disposed at the first position and prohibit an attachment of the toner container, and act on the first lever disposed at the second position and permit an attachment of the toner container; characterized by a stopper member attachable to either a first attachment position or a second attachment position and configured to, in a state of having been attached to the first attachment position, act on the first lever disposed at the second position and prohibit an attachment of the toner container, and in a state of having been attached to the second attachment position, permit an attachment of the toner container in which the first lever is disposed at the second position.