Look at the manufacturer's installation instructions.
I've never seen them on top of the door, I've always seen them 'where' the door opener attaches.
However, I suspect that BOTH would accomplish the intended goal of not folding the door up.
The winner, though, would be the one who said where the manufacturer says, which may be neither of you.
