Push file detection to model