[4.2] Request : extract file validation method

For consistency with 8a3726385171855986a6f9e1e30b09d796dfea3c.