Fixes #11438: Make OnFileManagerBeforeUpload event selectable

nothing spectacular...thanks @pixelchutes for reporting!

Hm, title doesn't reference the Issue hm...I mean #11438