Although the solenoid valve SV is provided on both of the connector JF and the connector receiver JM, in the image forming apparatus 1 according to the second embodiment, the solenoid valve SV may be provided only on the connector JF. In this case, the controller 100 may supply the open signal to the solenoid valve SV of the connector JF, having the light receiver R about which the decider 104 has decided that the color of received light accords with the allocated color, out of the plurality of light receivers R1 to R4, thereby opening the solenoid valve SV, but may keep from supplying the open signal to the solenoid valve SV of the connector JF, having the light receiver R about which the decider 104 has decided that the color of received light discords with the allocated color, thereby keeping the solenoid valve SV from being opened. Therefore, the solenoid valve SV of the connector JF is opened only when the connector JF is normally connected, to allow the correct fluid to flow through. When the connector JF is wrongly connected, the solenoid valve SV of the wrongly connected connector JF is kept closed. Therefore, even though the connector JF is wrongly connected, the wrong fluid is kept from flowing through, and consequently a trouble arising from the supply of wrong fluid can be securely prevented.
The disclosure may be modified in various manners, without limitation to the foregoing embodiments. For example, although the MFP is taken up in the foregoing embodiments as an example of the image forming apparatus according to the disclosure, the disclosure is also applicable to various other image forming apparatuses having the printing function.