Skip to content

Feature request: Accessing webkitRelativePath and class extensibility #6

@Enfis

Description

@Enfis

First, thank you for your outstanding work on the Blazor.FileAPI library. It's truly a pleasure to use.

I'm working on a project that requires access to the webkitRelativePath property of the File object.

As the File class has an internal constructor, I've found that I cannot inherit from it to extend its functionality. This design forces me to use JSRuntime.InvokeAsync with the "getAttribute" helper to retrieve this simple property, which feels unnecessarily verbose for this use case.

Would you consider adding a public method to the IJSWrapper interface, or an extension method, that provides a more direct way to access common properties? For example, something like a GetPropertyAsync() method. Or perhaps by adding a GetHelperReferenceAsync method to the BaseJSWrapper/IJSWrapper class?

This would greatly improve the API's usability and allow external classes to extend wrappers more elegantly.

Thank you for your time and for considering my request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions