Working with Uploader for Silverlight > Silverlight and Local Files |
Silverlight limits the way that local files can be accessed on a user's machine. For security reasons, Silverlight cannot access local files directly or access information about a user's file system. Because of these security issues, the C1Uploader class gets access to the file stream to upload a file using the Silverlight OpenFileDialog class.
The OpenFileDialog class returns a stream to selected files and does not give any information about the user's file system. The OpenFileDialog class enables users to select one or more files on the local computer or on a networked computer. Users are prompted with a dialog box allowing them to grant access to selected files which are exposed only as file streams, similar to isolated storage. You can use the OpenFileDialog class along with the C1Uploader class to allow users to upload local files to the server.