An image forming apparatus is provided which includes an image formation
unit for forming images on a recording medium; a first transporting path
for discharging a recording medium to a sheet discharge device; a longer
second transporting path for reversing the transportation direction of
the recording medium; a transporting path switching unit for switching
between the first transporting path or the second transporting path; a
setting unit for setting the discharge speed for discharging the
recording medium from the first and second transporting paths to a
recording sheet stacking unit, and also setting the reverse
transportation speed; and a determining unit for determining whether or
not the sheet discharge device has been connected to the image forming
apparatus; wherein the setting unit sets a first discharge speed slower
than the reverse transportation speed in the event that the sheet
discharge device has not been connected, and otherwise sets a faster
second discharge speed.