dotnet / dotnet/aspnetcore

Enhancement: Add Blazor IBrowserFile.RelativePath to interface

Open
#31,638 15 comments 5 reactions 0 assignees View on GitHub
area-blazor copilot-candidate cost: S enhancement feature-blazor-builtin-components help wanted
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.