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
139 stars 20 forks source link

ImageMaxSize not working #23

Closed wanglvhang closed 10 months ago

wanglvhang commented 10 months ago

when upload image file size is bigger than specified or default(2MB), the image file will still been uploaded. tested on Blazor WebAssembly

<MarkdownEditor @ref="markdownEditor" @bind-Value="SelectedEvent.content" ValueHTMLChanged="OnMarkdownValueHTMLChanged" ImageUploadStarted="UploadImageStarted" ImageUploadEndpoint=@markdownImageUploadEndpoint ImagePathAbsolute="true" UploadImage="true"/>

erossini commented 10 months ago

OK, I'll check that. Did you close the ticket because you fixed it?

wanglvhang commented 10 months ago

OK, I'll check that. Did you close the ticket because you fixed it?

i check the source code, i don't see any size checking logic in MarkdownEditor.razor UploadFile method, so i guess may be this function is not in the scope right now?