check file endpoint