# InteractionFileCollection Indexers

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InteractionFileCollection](/reference/api/csharp/aspire.hosting/interactionfilecollection.md)
- Kind: `Indexers`
- Members: `1`

Represents the uploaded files associated with an interaction input.

<a id="this"></a>
<a id="this-int"></a>

## this[int]

- Name: `this[int]`
- Modifiers: `get`
- Returns: [InteractionFile](/reference/api/csharp/aspire.hosting/interactionfile.md)

Gets an uploaded file by its zero-based index.

```csharp
public InteractionFile this[int index] { get; }
```

## Parameters

- `index` (`int`)
  The zero-based index of the file.

## Returns

[InteractionFile](/reference/api/csharp/aspire.hosting/interactionfile.md) -- The uploaded file at the specified index.
