uploadFile()
Availability:
SmartFoxServer Pro (1.5.0 or higher)
Usage:
smartFox.uploadFile(fileRef <FileReference> * , id <integer>, nick <String>, port <integer>)
Description:
Upload files
Parameters:
fileRef | the FileReference object, * NOTE: PASS A FLASH FILEREFERANCE INSTANCE YOU CREATED |
|
id | (optional) the user id. By default this value is automatically detected by the API(s). If you are using a custom login you should provide this value manually. | |
nick | (optional) the user nickname. By default this value is automatically detected by the API(s). If you are using a custom login you should provide this value manually. | |
port | (optional) the TCP port of the webserver. By default this value is set to 8080. If you have configured a different port number you should pass the correct port number. |
Returns:
Nothing. Upload events should be handled by the provided fileRef object
Example:
An upload tutorial with source code is available hereSee also: