dotnet/aspnetcore

Enhancement: Add Blazor IBrowserFile.RelativePath to interface

Open

#31.638 aberto em 9 de abr. de 2021

Ver no GitHub
 (15 comments) (5 reactions) (0 assignees)C# (10.653 forks)batch import
area-blazorcopilot-candidatecost: Senhancementfeature-blazor-builtin-componentshelp wanted

Métricas do repositório

Stars
 (37.933 stars)
Métricas de merge de PR
 (Mesclagem média 16d 9h) (258 fundiu PRs em 30d)

Description

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?

Guia do colaborador