pass file data as callback second argument.