File Class - MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference

Server-side actionscript language reference
Table of Contents

Advertisement

Example
The following example provides write access to the /myMedia/myStreams and myData/notes
directories.
application.onConnect = function(newClient, name){
newClient.writeAccess = "/myMedia/myStreams;myData/notes";
application.acceptConnection();
};
See also
Client.readAccess

File class

Availability
Flash Media Server 2.
The File class lets applications write to the server's file system. This is useful for storing
information without using a database server, creating log files for debugging, or tracking
usage. Also, a directory listing is useful for building a content list of streams or shared objects
without using Flash Remoting.
The File object allows access to the server file system. To protect against any misuse, Flash
Media Server allows access to files within a sandbox specified for the virtual host where the
application instance is running.
A sandbox is a security feature that determines how an application can interact with the
local file system, the network, or both the local file system and network at the same time.
Restricting how a file can interact with the local file system, or the network helps keep
your computer and files safe.
The server administrator can set up the sandbox for all applications within a virtual host and
can provide additional control to individual applications, if required. The following rules are
enforced by the server:
File objects cannot be created using file path specifications.
By default, a script can access files and directories only within the application directory of
the hosting application.
A virtual directory mapping can be set up to access files outside the application directory.
A slash (/)is used as the path separator.
The File object path follows the URI convention.
Access is denied if a path contains a backslash (\) or if a dot (.) or two dots (..) is the only
string component found between path separators.
File class
63

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents