Uploader for Silverlight Task-Based Help > Splitting Files |
Large files take more time to upload, and you may have issues where files take too long to upload or uploads time out. You can resolve these issues by configuring C1Uploader to SplitFilesIntoMultipleRequests mode. C1Uploader splits the file into multiple requests and the MaximumUploadSize property specifies the size of each request.
For example, use the following code to create a new C1Uploader control that splits uploaded files into multiple requests:
Visual Basic |
Copy Code
|
---|---|
Dim uploader1 As New C1UploaderPost(FilesPerRequest.SplitFilesIntoMultipleRequests) |
C# |
Copy Code
|
---|---|
C1UploaderPost uploader1 = new
C1UploaderPost(FilesPerRequest.SplitFilesIntoMultipleRequests);
|
C1Uploader splits uploaded files into multiple requests. Note that you can set the MaximumUploadSize property to specify the size of each request.