HTML editor add image - OnUploadComplete null reference

I am trying to use the HTML editor and add an image. The image is uploaded after you click the 'Ok' button, but an error is thrown there:

       Uncaught (in promise) Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at Radzen.Blazor.RadzenHtmlEditorImage.OnUploadComplete(UploadCompleteEventArgs args)
   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
   at Radzen.Blazor.RadzenUpload.OnComplete(String response)
    at Object.endInvokeDotNetFromJS (blazor.server.js:1:70618)
    at e.<anonymous> (blazor.server.js:10:48412)
    at blazor.server.js:1:26442
    at Array.forEach (<anonymous>)
    at e.invokeClientMethod (blazor.server.js:1:26412)
    at e.processIncomingData (blazor.server.js:1:24223)
    at e.connection.onreceive (blazor.server.js:1:17308)
    at WebSocket.i.onmessage (blazor.server.js:1:46784)

the way I use it is:

<RadzenHtmlEditor @bind-Value="@htmlValue" UploadUrl="upload/single-document/images" />

Is there something else I have to add? This is how it is in the example here: Free Blazor Components | 60+ controls by Radzen

The version is 3.14.2

<PackageReference Include="Radzen.Blazor" Version="3.14.2" />


Does your controller return the url of the uploaded image?

That was the issue.