savetoserver check if file exists