Added missing capability check for File API.