added file size to client and save file to server