V1.5.6.x "Incorrect file type" when uploading

The bug: On Windows client only, a panel "Incorrect file type" opens when trying to upload a file.
Described in issue #738.
This has been corrected in OC 2.0 and Community Edition but NOT in 1.5.6.x