erossini / BlazorMarkdownEditor

Complete Markdown Editor component for Blazor WebAssembly and Blazor Server. Full of functionalities
https://www.puresourcecode.com/dotnet/blazor/markdown-editor-component-for-blazor/
MIT License
117 stars 13 forks source link

Using image upload on Blazer Server causes a crash #12

Closed LoveCSharp closed 2 years ago

LoveCSharp commented 2 years ago

When using Blazor MarkdownEditor in Blazor Server, if image upload is turned on(UploadImage="true" ImageUploadEndpoint="..."),drag or copy the image to upload, the page will have an error "Attempting to reconnect to the server".Here's the log in the chrome console: [2022-06-19T06:07:42.805Z] Error: Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error.'. log @ blazor.server.js:1 _stopConnection @ blazor.server.js:1 transport.onclose @ blazor.server.js:1 _close @ blazor.server.js:1 stop @ blazor.server.js:1 _stopInternal @ blazor.server.js:1 await in _stopInternal(异步) stop @ blazor.server.js:1 _processIncomingData @ blazor.server.js:1 connection.onreceive @ blazor.server.js:1 o.onmessage @ blazor.server.js:1

erossini commented 2 years ago

Does your solution start with multiple projects MarkdownEditorDemo.Api and MarkdownEditorDemo?

erossini commented 2 years ago

I close now this issue. I hope the code is working.