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.
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.
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!