diff --git a/OpenAIChatGPTBlazor/Pages/Index.razor.cs b/OpenAIChatGPTBlazor/Pages/Index.razor.cs index 48ddc65..b0ddf49 100644 --- a/OpenAIChatGPTBlazor/Pages/Index.razor.cs +++ b/OpenAIChatGPTBlazor/Pages/Index.razor.cs @@ -73,7 +73,7 @@ private async Task LoadFiles(InputFileChangeEventArgs e) if (file != null) { var buffer = new byte[file.Size]; - await file.OpenReadStream().ReadAsync(buffer); + await file.OpenReadStream(10_000_000).ReadAsync(buffer); _file = (file.Name, new BinaryData(buffer), file.ContentType); } }