Skip to content

Commit

Permalink
size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander committed Jul 16, 2024
1 parent e7aa227 commit 94d5e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenAIChatGPTBlazor/Pages/Index.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 94d5e72

Please sign in to comment.