Patent ID: 8145077

Claim:
An image forming apparatus comprising: a body; a paper feeding tray provided in a detachable manner in the body for stacking paper; an image forming unit that performs image forming on a paper and that is arranged in the body; a paper conveying path that extends from the paper feeding tray to an image forming unit and feeds a paper from the paper feeding tray to the image forming unit; a paper discharge tray for stacking paper that has an image formed by the image forming unit; a paper container for stacking jammed paper; a branch conveying path that extends from a branching point in the paper conveying path to the paper container; a first paper sensor that is arranged in the paper conveying path downstream of the paper feeding tray and upstream of the branching point and detects a paper passing through the paper conveying path; a second paper sensor that is arranged in the paper conveying path downstream of the first paper sensor and upstream of the branching point and detects a paper passing through the paper conveying path; a switch nail that is arranged at the branching point and configured to switch conveyance paths of a paper between the paper conveying path and the branch conveying path; a jam detecting unit that detects paper jamming on the paper conveying path; and a switch control unit that controls the switch nail so that the jammed paper is conveyed to the paper container via the branch conveying path after the jam detecting unit detects paper jamming and the first sensor detects the jammed paper while the second sensor does not detect the jammed paper.