You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dragging a file into the Tauri Window a WindowEvent::DragDrop event is created. If the file's source was the file system, it will be a relative path to that file. If the file's source is a browser, such as Firefox, it the paths Vec will be empty.
Reproduction
Create a new Tauri app.
In tauri.conf.json set dragDropEnabled to true
Call the following method for the Tauri Builder:
tauri::Builder::default().on_window_event(|_, event| match event {WindowEvent::DragDrop(drop) => {dbg!(drop);}
_ => (),})
[app/src-tauri/src/lib.rs:14:17] drop = Drop {
paths: [
"https://uploads.dailydot.com/2018/10/olli-the-polite-cat.jpg",
],
position: PhysicalPosition {
x: 407.0,
y: 346.0,
},
}
Full tauri info output
WARNING: no lock files found, defaulting to npm
Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('devUrl', 'frontendDist' were unexpected)
Error `tauri.conf.json` error: Additional properties are not allowed ('app', 'bundle', 'identifier', 'productName', 'version' were unexpected)
lkdm
changed the title
[bug] DragDropEvent::Drop does not parse https:// url into paths vec.
[bug] DragDropEvent::Drop does not add https:// url into paths vec.
Sep 1, 2024
Describe the bug
When dragging a file into the Tauri Window a
WindowEvent::DragDrop
event is created. If the file's source was the file system, it will be a relative path to that file. If the file's source is a browser, such as Firefox, it thepaths
Vec will be empty.Reproduction
tauri.conf.json
setdragDropEnabled
totrue
Expected behavior
Console outputs:
Full
tauri info
outputThe text was updated successfully, but these errors were encountered: