Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]: MEditorUpload上传图片返回格式 #2193

Closed
kx500 opened this issue Oct 20, 2024 · 1 comment
Closed

[Bug Report]: MEditorUpload上传图片返回格式 #2193

kx500 opened this issue Oct 20, 2024 · 1 comment

Comments

@kx500
Copy link

kx500 commented Oct 20, 2024

private MEditorUpload _upload = new MEditorUpload
{
Action = "/api/upload/image",//Please change your upload address
};

Action 所设的地址应该返回什么格式和哪些参数

@kx500
Copy link
Author

kx500 commented Oct 20, 2024

fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit 'XQbHZ2plAw4FOnwX1I3QQzZlZinj4HO30zXmtG2PAUk'.
Microsoft.JSInterop.JSException: moduleClass is not a constructor
TypeError: moduleClass is not a constructor
at SnowTheme.addModule (https://cdn.masastack.com/npm/quill/1.3.6/quill.js:6057:28)
at SnowTheme.addModule (https://cdn.masastack.com/npm/quill/1.3.6/quill.js:6701:121)
at https://cdn.masastack.com/npm/quill/1.3.6/quill.js:6049:17
at Array.forEach ()
at SnowTheme.init (https://cdn.masastack.com/npm/quill/1.3.6/quill.js:6047:41)
at new Quill (https://cdn.masastack.com/npm/quill/1.3.6/quill.js:1113:16)
at Module.init (http://192.168.241.67:5276/_content/Masa.Blazor/js/quill/quill-helper.js:60:20)
at http://192.168.241.67:5276/_framework/blazor.web.js:1:3047
at new Promise ()
at y.beginInvokeJSFromDotNet (http://192.168.241.67:5276/_framework/blazor.web.js:1:3004)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSObjectReferenceExtensions.InvokeVoidAsync(IJSObjectReference jsObjectReference, String identifier, Object[] args)
at Masa.Blazor.MEditor.CreateEditorAsync()
at Masa.Blazor.MEditor.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
Microsoft.JSInterop.JSDisconnectedException: JavaScript interop calls cannot be issued at this time. This is because the circuit has disconnected and is being disposed.
at Microsoft.AspNetCore.Components.Server.Circuits.RemoteJSRuntime.BeginInvokeJS(Int64 asyncHandle, String identifier, String argsJson, JSCallResultType resultType, Int64 targetInstanceId)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, CancellationToken cancellationToken, Object[] args)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Masa.Blazor.Extensions.JsRuntimeExtensions.GetNumberPropAsync(IJSRuntime jsRuntime, Object el, String name)
at Masa.Blazor.MTextField1.SetLabelWidthAsync() at Masa.Blazor.MTextField1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

@kx500 kx500 changed the title [Bug Report]: Editor还是存在问题,当路由到有Editor的页面时,PopupService.EnqueueSnackbarAsync("成功", AlertTypes.Success); 无效 [Bug Report]: MEditorUpload上传图片返回格式 Oct 20, 2024
@kx500 kx500 closed this as completed Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant