Safing file to server. Basis functionallity