Uploader for Silverlight
Uploading Files

The Files collection determines what files are uploaded to the server. You can add single or multiple files to the Files collection. To add a single file to the collection, use the AddFile method. To add multiple files use the AddFiles method. For example, you might include a C1FilePicker control on the page and a button. When the user presses the button, the AddFile method adds the chosen file to the Files collection.

Once you select a file or multiple files, you can use the BeginUploadFiles method to begin uploading files to the server. When the BeginUploadFiles method is invoked, the C1Uploader control sends files included in the Files collection to the server. If for any reason you need to cancel the upload operation, you can invoke the Cancel method. For example, you might cancel the operation if it takes too much time or if another operation is already in progress when the user chooses to upload another file.

 

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback