passing File object to callback when file initialized using callback