Is there a way to access the file stream of the file and not directly upload the file to an endpoint?
I just need access to the stream to save the file to the database, not the server.
1 Answer, 1 is accepted
0
Svetoslav Dimitrov
Telerik team
answered on 24 Feb 2021, 11:15 AM
Hello Andy,
We have an open Feature request regarding a FileSelect component. The main difference between them is that the Upload sends the file outside the Blazor application - to an endpoint (server) where you process the file as needed and save it to a database. The FileSelect will send the file in the Blazor app (in the application memory). At that point, you can access the file as a byte[] and you can use that as per your application needs. In the comments in the public thread, you can see some ideas on how to implement a custom FileSelect for the time being. If indeed the FileSelect is what you are looking for you can Vote for the feature request to raise the popularity of the item and Follow the thread to receive email notifications on status updates.
Let me know if you need any further assistance.
Regards,
Svetoslav Dimitrov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.