From e7aa227c4557ffc0ff24692e96a08e3b9182e4c7 Mon Sep 17 00:00:00 2001 From: lxbdev Date: Mon, 27 May 2024 06:11:36 +0200 Subject: [PATCH] allow file upload --- .vscode/launch.json | 20 +++++++++++++ OpenAIChatGPTBlazor/Pages/Index.razor | 17 +++++++++-- OpenAIChatGPTBlazor/Pages/Index.razor.cs | 38 ++++++++++++++++++++---- OpenAIChatGPTBlazor/Pages/Index.razor.js | 8 ++++- OpenAIChatGPTBlazor/Program.cs | 1 + 5 files changed, 75 insertions(+), 9 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f6b0364 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,20 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "C#: OpenAIChatGPTBlazor Debug", + "type": "dotnet", + "request": "launch", + "projectPath": "${workspaceFolder}/OpenAIChatGPTBlazor/OpenAIChatGPTBlazor.csproj" + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach", + "processName": "OpenAIChatGPTBlazor.exe" + } + ] +} \ No newline at end of file diff --git a/OpenAIChatGPTBlazor/Pages/Index.razor b/OpenAIChatGPTBlazor/Pages/Index.razor index b5d8af3..2fc5849 100644 --- a/OpenAIChatGPTBlazor/Pages/Index.razor +++ b/OpenAIChatGPTBlazor/Pages/Index.razor @@ -73,11 +73,24 @@