#/plugin-dialog when open a file now is returning a string
8 messages · Page 1 of 1 (latest)
https://v2.tauri.app/plugin/dialog/#open-a-file-selector-dialog gives you file path or uri only, you have to create file name from it
var filename = fullPath.replace(/^.*[\\/]/, '') This will handle both / OR \ in paths. from https://stackoverflow.com/a/423385
works on both window and linux path styles
@rich onyx Thanks!!
I still think this changes should be controlled.. I mean now will take a couple of hours just to replace and fix all the things that depend on file.path
hmm, I think they must have good reasons. lets ping tauri team @neat crypt for name addition in response https://github.com/tauri-apps/plugins-workspace/blob/3b2bd3065d516735b33519df014a81b0d481c7a8/plugins/dialog/src/commands.rs#L15
we won't have another breaking change like that at least until v3, sorry