fixed filesending to server