MDL-22991, fixed file api calls