A straight, horizontal current-carrying wire is placed in a uniform magnetic field between two flat magnetic poles as shown in the diagram.

Which direction does the magnetic force on the wire act?
Towards the left
Towards the right
Towards the N pole (downwards)
Towards the S pole (upwards)