Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor - ondrop event doesn't return file object #25721

Closed
pandiyarajm93 opened this issue Sep 9, 2020 · 1 comment
Closed

Blazor - ondrop event doesn't return file object #25721

pandiyarajm93 opened this issue Sep 9, 2020 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@pandiyarajm93
Copy link

pandiyarajm93 commented Sep 9, 2020

I have bind @ondrop event into my div element, while drag and drop local image into div, DragEventArgs doesn't return file object details.

Razor code

<div @ondrop="@OnDrop"></div>

`
@code{

    internal void OnDrop(DragEventArgs args)

    {

        var files = args.DataTransfer.Files;

    }

}
`

output:

image

How to get file Info from DragEventArgs?

@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Sep 9, 2020
@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Sep 9, 2020
@mkArtakMSFT
Copy link
Member

Thanks for contacting us.
We plan to cover this as part of #18754

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Sep 9, 2020
@ghost ghost added the Status: Resolved label Sep 9, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants