Fixed File api detection