Need More Info
Last Updated: 07 Mar 2025 10:13 by Fabien
Fabien
Created on: 03 Mar 2025 09:10
Category: UI for Blazor
Type: Bug Report
0
FileSelect Stream property blocking when getting ReadTimeout property value

I noticed that when the ReadTimeout property of the FileSelect's FileInfoStream is read, the code seem to block completely.

You will find a Blazor Web App project attached to this ticket showcasing the issue.

2 comments
Fabien
Posted on: 07 Mar 2025 10:13

Hi Stamo,

Seeing the code, FileInfoStream does not override the ReadTimeout property and thus, I should see an InvalidOperationException being raised. I don't see it though and I don't understand why.

You can close this ticket. Thanks for this explanation.

ADMIN
Stamo Gochev
Posted on: 07 Mar 2025 09:53

Hi Fabien,

The "ReadTimeout" property isn't currently used by the FileSelect component and it is present as the "Stream" parameter inherits from the System.iO.Stream class, so that it matches its structure for convenience.

However, we do not intend to support "all" functionalities of the "Stream" class (in fact, most of them are intentionally not implemented to make the distinction more verbose, you can check this in the source code of Telerik UI for Blazor in the "FileInfoStream.cs" file).

For more details what is supported and how do we recommend the FileSelect component to be used, please refer to the documentation:

https://www.telerik.com/blazor-ui/documentation/components/fileselect/overview 

This being said, what I can suggest is for you to convert the underlying stream data to a new stream and use it for further processing, which will allow you to use the "ReadTimeout" property.

Regards,
Stamo Gochev
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!