tauri
tauri copied to clipboard
[bug] FileDialogBuilder accepts non-existing files
Describe the bug
When I open files with the FileDialogBuilder I can write anything in the file name field and the dialog accepts this as if it existed.
Reproduction
dialog::blocking::FileDialogBuilder::new()
.set_parent(&window)
.set_title("Add files")
.pick_files()
Expected behavior
The expected behavior would be for the dialog to complain about the file not existing as it does in most applications.
(from notepad.exe)
Full tauri info
output
[✔] Environment
- OS: Windows 10.0.22631 X64
✔ WebView2: 125.0.2535.67
- Visual Studio Build Tools 2019
- Visual Studio Professional 2022
✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 22.2.0
- npm: 10.2.0
[-] Packages
- tauri [RUST]: 1.6.5
- tauri-build [RUST]: 1.5.2
- wry [RUST]: 0.24.9
- tao [RUST]: 0.16.9
- @tauri-apps/api [NPM]: 1.5.6
- @tauri-apps/cli [NPM]: 1.5.14
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:5173/
- framework: React
- bundler: Vite
Stack trace
No response
Additional context
No response