skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class CloudUploadFile

Class that contains logic for uploading a file, tracking upload progress and upload cancelation.

Inheritance
System.Object
CloudUploadFile
Namespace: Telerik.Windows.Cloud.Controls.Upload
Assembly: Telerik.Windows.Cloud.Controls.dll

Syntax

public sealed class CloudUploadFile : Object, INotifyPropertyChanged

Constructors

CloudUploadFile(String, Stream, List<Object>)

Initializes a new instance of the CloudUploadFile class.

Declaration
public CloudUploadFile(string fileName, Stream fileStream, List<object> validationErrors = null)
Parameters
System.String fileName

System.IO.Stream fileStream

System.Collections.Generic.List<System.Object> validationErrors

Properties

FileName

The short file name.

Declaration
public string FileName { get; }
Property Value
System.String

FileSize

The file size.

Declaration
public long FileSize { get; }
Property Value
System.Int64

Provider

The cloud upload provider.

Declaration
public ICloudUploadProvider Provider { get; set; }
Property Value
ICloudUploadProvider

RequestCancelCommand

A command that requests a cancel when executed.

Declaration
public ICommand RequestCancelCommand { get; }
Property Value
System.Windows.Input.ICommand

RequestCloseCommand

A command that raises the CloseRequested event.

Declaration
public ICommand RequestCloseCommand { get; }
Property Value
System.Windows.Input.ICommand

StartUploadCommand

A command that starts the file upload.

Declaration
public ICommand StartUploadCommand { get; }
Property Value
System.Windows.Input.ICommand

State

The state of the upload.

Declaration
public CloudUploadFileState State { get; }
Property Value
CloudUploadFileState

UploadedBytes

The uploaded bytes count.

Declaration
public long UploadedBytes { get; }
Property Value
System.Int64

UploadResult

The result of the upload.

Declaration
public object UploadResult { get; }
Property Value
System.Object

ValidationErrors

The validation errors.

Declaration
public List<object> ValidationErrors { get; }
Property Value
System.Collections.Generic.List<System.Object>

Methods

RequestCancel()

Requests a cancellation for the upload.

Declaration
public void RequestCancel()

RequestClose()

Raises the CloseRequested event.

Declaration
public void RequestClose()

StartUpload()

Starts the file upload.

Declaration
public void StartUpload()

Events

CloseRequested

Occurs when a close is requested.

Declaration
public event EventHandler CloseRequested
Event Type
System.EventHandler

ProgressChanged

Occurs when the upload progress changes.

Declaration
public event EventHandler ProgressChanged
Event Type
System.EventHandler

PropertyChanged

Occurs when a property value changes.

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

StartUploadRequested

Occurs when starting an upload is requested.

Declaration
public event EventHandler<StartUploadRequestedEventArgs> StartUploadRequested
Event Type
System.EventHandler<StartUploadRequestedEventArgs>

StateChanged

Occurs when the state changes.

Declaration
public event EventHandler<CloudUploadFileStateChangedEventArgs> StateChanged
Event Type
System.EventHandler<CloudUploadFileStateChangedEventArgs>

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.