dotnet/aspnetcore
Enhancement: Add Blazor IBrowserFile.RelativePath to interface
Aperta
#31.638 aperta il 9 apr 2021
area-blazorcopilot-candidatecost: Senhancementfeature-blazor-builtin-componentshelp wanted
Metriche repository
- Star
- (37.933 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
I would like to be able to access the file(s) that have been selected in the InputFile component from javascript to be able to do something like this:
URL.createobjecturl(file)
There is a lookup table in the underlying html/javascript element, but the Id of the file is internal. Is it possible to add the Id property to the IBrowserFile interface?
Or is there some other way that I can create an extension method for IBrowserFile so I can get to the URL.createobjecturl(file) underlying javascript call?