# FileContent constructor

Kind: Constructor  
Namespace: `Sisk.Core.Http`  
Assembly: `Sisk.Core.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Core.Http.FileContent.-ctor.html

## FileContent(FileInfo) {#Sisk_Core_Http_FileContent__ctor_System_IO_FileInfo_}

Initializes a new instance of the [FileContent](https://docs.sisk-framework.org/api/Sisk.Core.Http.FileContent.md) class with the specified file.

```csharp
public FileContent(FileInfo file)
```

### Parameters

`file` [FileInfo](https://learn.microsoft.com/dotnet/api/system.io.fileinfo)

The file to be used as content.

## FileContent(string) {#Sisk_Core_Http_FileContent__ctor_System_String_}

Initializes a new instance of the [FileContent](https://docs.sisk-framework.org/api/Sisk.Core.Http.FileContent.md) class with the specified file path.

```csharp
public FileContent(string filePath)
```

### Parameters

`filePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The path to the file to be used as content.
