Add File API detection to client file validator

Fixes #6345