Fixes #11438: Make OnFileManagerBeforeUpload event selectable

nothing spectacular...thanks @pixelchutes for reporting!