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

Dropping files (ondrop) doesn't work on Windows #2954

Open
Boscop opened this issue Sep 12, 2024 · 3 comments
Open

Dropping files (ondrop) doesn't work on Windows #2954

Boscop opened this issue Sep 12, 2024 · 3 comments
Labels
bug Something isn't working windows

Comments

@Boscop
Copy link

Boscop commented Sep 12, 2024

Problem

Dropping files (ondrop) doesn't work on Windows, the even doesn't seem to get triggered.

Steps To Reproduce

Steps to reproduce the behavior:

  • cargo r --example file_upload
  • Click on "Choose Files" (the file input) and select a .txt file -> That works fine but:
  • Now click "Clear Files" and drag the same .txt file from Windows Explorer and drop it onto the "Drop files here" area
  • Nothing happens!

Expected behavior

It should load the file just like when opening it by clicking on the file input and selecting it through the file dialog.

Screenshots

image

Environment:

  • Dioxus version: latest main branch, commit b20db13e84227b76741e007b2763adc8237ada48
  • Rust version: rustc 1.82.0-nightly (8b3870784 2024-08-07)
  • OS info: Windows 11
  • App platform: desktop
@matthunz matthunz added bug Something isn't working windows labels Sep 12, 2024
@matthunz
Copy link
Contributor

matthunz commented Sep 12, 2024

Thanks for reporting this!

Looks like it is working on MacOS (and no open issues I can see for tao)

Screenshot 2024-09-12 at 6 44 19 PM

@Boscop
Copy link
Author

Boscop commented Sep 14, 2024

@matthunz Yeah, IIRC I reported an issue with file dropping on Windows when the Tauri project was in early stages, not sure on which repo though, I couldn't find the issue or if it was solved..

EDIT: I think it was this, but it's a different problem: tauri-apps/tao#62

@DogeDark
Copy link
Member

I can verify that this does not work on Windows 10, Dioxus main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows
Projects
None yet
Development

No branches or pull requests

3 participants