# InteractionFile Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InteractionFile](/reference/api/csharp/aspire.hosting/interactionfile.md)
- Kind: `Properties`
- Members: `3`

Represents a file selected by the user for an [InputType.File](/reference/api/csharp/aspire.hosting/inputtype/fields.md) input.

<a id="filepath"></a>

## FilePath

- Name: `FilePath`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/IInteractionService.cs#L469)

Gets the full path to the uploaded file on disk.

```csharp
public string FilePath { get; }
```

<a id="id"></a>

## Id

- Name: `Id`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/IInteractionService.cs#L459)

Gets the unique identifier for the uploaded file.

```csharp
public string Id { get; }
```

<a id="name"></a>

## Name

- Name: `Name`
- Modifiers: `get`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/IInteractionService.cs#L464)

Gets the original file name as provided by the user (e.g. "readme.txt").

```csharp
public string Name { get; }
```
