acceptFile method