serialize to FTP help??

Hello,

I am trying to upload my scene to ftp using unity serializer newest version but i don’t know how to do that i’ve got:

void DoMyWindow(int windowID) {
		GUI.Label (new Rect (20, 20, 300, 100), "Choose something!");
		
		if (GUI.Button(new Rect(20, 40, 120, 25), "Contineu editing")){
			GameObject.Find ("Main Camera").GetComponent<levelEditMenu> ().leveltest = false;
			GameObject.Find("Main Camera").GetComponent<levelEditMenu>().stopTestLevel ();
			finish = false;
			GameObject.Find ("Main Camera").GetComponent<levelEditMenu> ().finishBool = false;
		}

		if (GUI.Button (new Rect (150, 40, 120, 25), "Publish")) {
			SerializeLevelToServer();
		}
	}

	public static void SerializeLevelToServer (string uri = "ftp://universal-games.nl/test.dat", string userName = "alien-bros@universal-games.nl", string password = "Tm7._=MTuBmJ",
	                                           System.Action<System.Exception> onComplete = null){
		print ("test");
	}

But that doesn’t work at all does someone give me an example or help me?

Help please?

Rather than bumping your thread with a pointless addition, why not explain in more detail what doesn’t work and what you have tried. I’m not even sure if you mean you don’t get “test” printed on the console.

It may be a copy/paste issue but your parameters are hosed for your function… there’s an " where a quote character should be. Also I would very highly recommend editing your code sample because you have your FTP server address, username and password exposed right here for the world to see in the forum.