I confirm that this issue does exist (as of WordPress 4.9.1) and does not allow me to upload some files even with the ‘define’ fix.
However, there is a workaround (not sure if someone already wrote about it): the browser uploader (not a wordpress built-in one) allows me to upload necessary file though I have to do it file-wise.
Agree, @matches-malone. This should not be marked as resolved.