Upload images, audios, videos issues/questions

We are using the image, audio and video upload tools. We are trying to restrict the upload by size.

Image
See this documentation: https://blazor.syncfusion.com/documentation/rich-text-editor/tools/insert-image#restrict-image-upload-based-on-size
The page says "
By using the Rich Text Editor’s RichTextEditorEvents.OnImageUploading event", but that event doesn't exist. We believe it was replaced with "BeforeUploadImage" and the documentation is outdated. Also notice the example code uses "BeforeUploadImage". OK. No problem.
Issue: When "BeforeUploadImage" fires, 
args.FilesData is null. See attached code.

Audio
We're using "
FileUploading" and it works perfectly.

Video
We're using "FileUploading" and it works perfectly.
Question: Why does 
RichTextEditorVideoSettings have Property "MaxFileSize"? Why doesn't "RichTextEditorAudioSettings" and "RichTextEditorImageSettings" also have "MaxFileSize"?

Thanks. This is a great product.


Attachment: SFIssues_8dfa8eae.zip

5 Replies

BT Bhuvaneshwari Thirunavukarasu Syncfusion Team February 25, 2025 11:58 AM UTC

Hi Brian Pautsch,
Query 1: args.FilesData is null in the BeforeUploadImage event of Rich Text Editor
We have considered the reported issue "args.FilesData is null in the BeforeUploadImage event of Rich Text Editor" as a bug from our end and the fix for the issue will be included with our upcoming patch release on first week of March 2025.
Now you can track the status of the reported issue through this feedback,
If you would like to verify the fix before the next release, we can provide you with a custom patch. Please let us know if you are interested.
Query 2: Add MaxFileSize Property to RichTextEditorAudioSettings and RichTextEditorImageSettings 
We have considered your request to “Add MaxFileSize Property to RichTextEditorAudioSettings and RichTextEditorImageSettings” as an uncertain feature request from our end. This support will be included in one of our upcoming releases.
Now you can track the status of the reported issue through the feedback below,
Generally, we will plan the feature implementation based on the customer request count, feature rank, and Wishlist plan. You can upvote the feature request feedback so that it gets support and will be ranked higher for implementation.
Thanks,
Bhuvaneshwari T


BP Brian Pautsch February 25, 2025 02:23 PM UTC

Great! Thanks for the updates.



BP Brian Pautsch February 25, 2025 09:46 PM UTC

Query 1: If a hot fix is available, we would appreciate it.



BT Bhuvaneshwari Thirunavukarasu Syncfusion Team February 26, 2025 12:20 PM UTC

Hi Brian Pautsch,

We have created a custom NuGet package for version 28.2.7 to address the issue where args.FilesData is null in the BeforeUploadImage event of Rich Text Editor. This fix will be included in our next weekly release, and we will notify you once the release is available, along with the release notes.
In the meantime, you can download the custom package using the link below:

Custom pack Link: https://drive.google.com/file/d/1zLHF3HD11jXhECX5prMgW1MeXIau9NNw/view?usp=drive_link

Important: Before installing the custom package, please clear your NuGet cache to ensure that the latest package is used. You can do this by following these steps:
  1. Using .NET CLI:
    • Open a command prompt or terminal.
    • Execute the following command: dotnet nuget locals all --clear
This command will clear all NuGet caches, including HTTP requests, temporary data, and the global packages folder.

Please test this on your end and let us know if you encounter any issues.
Thank you,
Bhuvaneshwari T


BT Bhuvaneshwari Thirunavukarasu Syncfusion Team March 5, 2025 04:35 AM UTC

Hi Brian Pautsch,

Query 1: args.FilesData is null in the BeforeUploadImage event of Rich Text Editor

​Feedback:  args.FilesData is null in the BeforeUploadImage event of Rich Text Editor in Blazor | Feedback Portal

We have included the fix for the issue "args.FilesData is null in the BeforeUploadImage event of Rich Text Editor" with our package version 28.2.9. So, can you please upgrade your package to the latest to resolve the issue from your end?

Root cause: The method Fileselected perform the task whether the image is selected or not and execute the file that have be selected, it working even if the image is not selected.

Regards

Bhuvaneshwari T


Loader.
Up arrow icon