pass $this by reference on callbacks so they can modify the File object