dotnet/aspnetcore

Enhancement: Add Blazor IBrowserFile.RelativePath to interface

Open

#31,638 建立於 2021年4月9日

在 GitHub 查看
 (15 留言) (5 反應) (0 負責人)C# (10,653 fork)batch import
area-blazorcopilot-candidatecost: Senhancementfeature-blazor-builtin-componentshelp wanted

倉庫指標

Star
 (37,933 star)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 258 個 PR)

描述

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?

貢獻者指南