mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 13:44:47 +00:00
ShowOpenDialog doesn't read "+" character in the file names #793
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AvinashSuresh12 on GitHub (May 11, 2022).
Originally assigned to: @GregorBiswanger on GitHub.
Hi,
I'm trying to get the selected file details using the ShowOpenDialog method from ElectronDialogWindow. Able to get the selected file paths properly but the file Names having the "+" character are not getting recognized properly.
Current behavior: If the file name is "ab+cd" then it will be read as "ab ab". It's not recognizing the "+" character.
Expected behavior: It should recognize the "+" character and read it as "ab+ab".
Does anyone have thoughts about this?
Thanks
@Bmooij commented on GitHub (Jul 28, 2022):
I think this a bug in Electron.NET.
The
showOpenDialogcommand is send to the ElectronNET.Host.ElectronNET.Host calles the
showOpenDialogAnd sends the results back to ElectronNET.API.
The ElectronNET.API transforms the paths with an
HttpUtility.UrlDecode, but the paths are not UrlEncoded.When
HttpUtility.UrlDecodeis called onab+bcthe result isab bc.But when
HttpUtility.UrlDecodeis called onab-bcthe result isab-bc, therefor it was never noticed before. I think.@GregorBiswanger could you please confirm this? I can then create a merge request for it.
@FlorianRappl commented on GitHub (Nov 2, 2025):
Outdated - use
ElectronNET.CoreandElectronNET.Core.AspNet.See Wiki / What's New.