# Open File Dialog

**RadCloudUpload** allows you to open a custom dialog to browse the files for upload. To do this set the **CreateOpenFileDialog** property. It is of type **Func\<Microsoft.Win32.OpenFileDialog>** and can be used to provide a function that returns an OpenFileDialog instance. This is useful to customize the dialog settings. For example, to restrict users to upload certain type of files.

**Example 1: Defining the cloud upload control**

```XAML
<telerik:RadCloudUpload x:Name="RadCloudUpload" />
```

**Example 2: Setting CreateOpenFileDialog. The function returns a dialog with a custom filter that allows only text files.**

```C#
this.RadCloudUpload.CreateOpenFileDialog = () =>
{
    OpenFileDialog ofd = new OpenFileDialog();
    ofd.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*";
    return ofd;
};
```

## See Also

* [OpenFileDialog](http://msdn.microsoft.com/en-us/library/microsoft.win32.openfiledialog%28v=vs.110%29.aspx)
* [Providers](https://www.telerik.com/products/wpf/documentation/controls/radcloudupload/features/providers)
