can send file from server to client.
but function not really ending