[Home](../README.md) > [IHttpStorageProvider](./IHttpStorageProvider.md) > saveFile

## IHttpStorageProvider.saveFile() method

**Signature:**

```typescript
saveFile(path: string, contents: string, contentType?: string): Promise<Result<IStorageFileResponse>>;
```

**Parameters:**

<table><thead><tr><th>Parameter</th><th>Type</th><th>Description</th></tr></thead>
<tbody>
<tr><td>path</td><td>string</td><td></td></tr>
<tr><td>contents</td><td>string</td><td></td></tr>
<tr><td>contentType</td><td>string</td><td></td></tr>
</tbody></table>

**Returns:**

Promise&lt;Result&lt;[IStorageFileResponse](IStorageFileResponse.md)&gt;&gt;
