Hi
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Hi Vinitha JeyaKumar,
I am using
V20.4.49 and still, I have to get the error.
when I paste the image in the RTE after saving image in the DB ImageUploadSuccess event fired and File is null in the ImageSuccessEventArgs.
Hi Adnan,
We are able to reproduce the reported issue in the V20.4.49. In order to resolve the reported issue, we suggest you to upgrade the Version to the version 21.1.41. We have also prepared a sample, and attached with this response in which the File is returned properly.
Please let us know if you face any difficulties,
Regards,
Indrajith
Hi Indrajith Srinivasan,
thanks for your response I checked your sample project it works fine with the Path URL. When we remove the path it will show an image crack icon with the name. I used to upload images on blob I don't want to use path.
Adnan,
The Path property is mandatory for the Image’s being uploaded in the server when the SaveUrl is being configured. If you want to save the image as Blob, you can use the SaveFormat type as SaveFormat.Blob. Check the below shared documentation for reference.
Documentation: https://blazor.syncfusion.com/documentation/rich-text-editor/tools/insert-image#image-save-format
If the above suggestion doesn’t help your needs, you can also try the below way of setting the Path property as empty string and load the image path in the OnImageUploadSuccess event to load the image from a local resource. Check the below shared code blocks and screeshot for reference.
|
public void ImageUploadSucess(ImageSuccessEventArgs args) { var headers = args.Response.Headers.ToString(); header = headers.Split("name: "); header = header[1].Split("\r");
// Update the modified image name to display a image in the editor. args.File.Name = "./Images/DocTemplate/dropArea/" + header[0];
} |
Regards,
Indrajith
Hi Indrajith
Srinivasan,
I updated Syncfusion version:
21.1.41 and still, I am getting file null.
Hi Adnan,
We have checked your issue in the 21.1.41 Package version, but we were not able to replicate your problem. Please see the attached video and sample for your reference.
We suggest clearing the cache and then running the application. You can follow the documentation provided at the following link to remove the cache:
https://support.syncfusion.com/kb/article/6265/how-to-clear-nuget-cache
If you are still encountering an error, could you please share the following information with us to replicate the problem on our end?
Hi
Vinothkumar Yuvaraj,
I am
available until IST 12:00 Am.
Hi Adnan,
Can you share the below details, as requested in the last update, to check further at our end?
Please modify the shared sample with the issue replicating code.
Share a sample that reproduces the issue.
Hi
Vinothkumar
Yuvaraj,
now this working fine
thank you for your help :)
Hi VinothKumar Yuvraj,
I am using the latest version of syncfusion and now I am not able to use large screenshot pictures.
Can you please help
Please check attached.
Hi Adnan,
We suspect that the issue occurred due to a buffer limitation in Blazor. Therefore, to upload large files in the Rich Text Editor, you need to increase the buffer size. You can adjust the buffer size manually in the startup.cs file of your project to resolve the issue. Please refer to the following code snippet:
startup.cs
services.AddSignalR(e => { e.MaximumReceiveMessageSize = 102400000; }); |
For more information on Blazor buffer limitations, please see : https://docs.microsoft.com/en-us/aspnet/core/signalr/security?view=aspnetcore-2.1#buffer-management
Hi Vinothkumar,
thanks it works.
I want to upload a file in SfUploader and get stream null.
did you know why ?
Hi Adnan,
We have included the fix for the issue "Script error throws when pasting an image into the RichTextEditor" with our package version 22.1.37. So, can you please upgrade your package to the latest version to resolve the issue on your end.
Release notes: https://blazor.syncfusion.com/documentation/release-notes/22.1.37?type=all#rich-text-editor
Regards,
Vinothkumar