SmartFoxServer Silverlight API
UploadFile Method (filePath, id, nick, port)
Namespaces ► SmartFoxClientAPI ► SmartFoxClient ► UploadFile(String, Int32, String, Int32)
Upload a file to the embedded webserver.
Declaration Syntax

C# | Visual Basic | Visual C++

    public void UploadFile(
    	string filePath,
    	int id,
    	string nick,
    	int port
    )

    Public Sub UploadFile ( _
    	filePath As String, _
    	id As Integer, _
    	nick As String, _
    	port As Integer _
    )

    public:
    void UploadFile(
    	String^ filePath,
    	int id,
    	String^ nick,
    	int port
    )

Parameters

filePath (String)
  the FileReference object (see the example).

id (Int32)
  the user id (optional, default value: myUserId).

nick (String)
  the user name (optional, default value: myUserName).

port (Int32)
  the webserver's TCP port (optional, default value: httpPort).

Remarks

NOTE:
upload events fired in response should be handled by the provided FileReference object (see the example).

Sends:
SFSEvent..::.OnSpectatorSwitchedDelegate

Since:
SmartFoxServer Pro v1.5.0

Version:
SmartFoxServer Basic / Pro

Examples
Check the Upload Tutorial available here: Tutorial
See Also
myUserId
myUserName
httpPort

Assembly: SmartFoxClientAPI_Silverlight (Module: SmartFoxClientAPI_Silverlight) Version: 1.0.0.0 (1.0.0.0)