Custom onChange directive for file input