---
title: "InputElement.AddFile"
url: "https://reference.aspose.com/html/net/aspose.html.forms/inputelement/addfile/"
product: "Aspose.HTML for .NET API Reference"
description: "InputElement AddFile method. This method adds files to the Files collection which will be sent during the next web request"
---

## InputElement.AddFile method

This method adds files to the [`Files`](../../../aspose.html/htmlinputelement/files/) collection which will be sent during the next web request.

```csharp
public void AddFile(string uri)
```

| Parameter | Type | Description |
| --- | --- | --- |
| uri | String | The file path. |

### See Also

* class [InputElement](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
