# OpenDocumentSpreadsheetLoadOptions.MaxFileBytes Property

> OpenDocumentSpreadsheetLoadOptions.MaxFileBytes property in the TX Sheet Control .NET API: Maximum accepted compressed input bytes.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > OpenDocumentSpreadsheetLoadOptions > OpenDocumentSpreadsheetLoadOptions.MaxFileBytes Property
- **236 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/opendocumentspreadsheetloadoptions/maxfilebytes-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/opendocumentspreadsheetloadoptions/maxfilebytes-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/opendocumentspreadsheetloadoptions/maxfilebytes-property/llms-full.txt

---

Maximum accepted compressed input bytes.

### Syntax

```csharp
public long? MaxFileBytes { get; init; }
```

### Example

The application owns the licensed `control` and supplies `inputBytes` for loading.

```csharp
using TXTextControl.TXSheetControl.Server;

var options = new OpenDocumentSpreadsheetLoadOptions { MaxFileBytes = 67108864 };
await control.LoadAsync(inputBytes, StreamType.OpenDocumentSpreadsheet, new LoadOptions { OpenDocumentSpreadsheet = options });
```

---

## Nearby

- **Previous:** [OpenDocumentSpreadsheetLoadOptions.MaxExpandedBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/opendocumentspreadsheetloadoptions/maxexpandedbytes-property/llms-full.txt)
- **Next:** [OpenDocumentSpreadsheetLoadOptions.MaxPartBytes Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/opendocumentspreadsheetloadoptions/maxpartbytes-property/llms-full.txt)
