Add File API detection to client file validator

Fixes #6345
Fixes #6381: Client-side file validation should be disabled if the browser does not support it