This is a migrated thread and some comments may be shown as answers.
Preview Image
1 Answer 67 Views
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 21 May 2020, 07:57 AM
Can I priview image in  onselect event ? 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 21 May 2020, 08:42 AM

Hi Tony,

You can see how you can do this here: https://www.telerik.com/forums/upload-and-display-image-on-form

In OnSelect, you don't have the file because the Upload component does not send it to Blazor - this would be a performance hit for server-side blazor as ultimately the file would be sent over the wire 3 times, all of them over SignalR which is not designed for large payloads. If you want to have a file in OnSelect to modify and use immediately, you would need a FileSelect component that sends the file to the Blazor app, and not to an endpoint. In this article you can Vote for and Follow the implementation of such a Telerik component, and you can also find an example of how to make one yourself: https://feedback.telerik.com/blazor/1460649-fileselect-component.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
Tony
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or