We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When viewing following HTML code using WKWebView
<input type="file">
And user selects a file which contains space character, the application will crash with NSInvalidArgumentException.
NSInvalidArgumentException
I think the issue is with RunOpenPanel function
RunOpenPanel
Eto/src/Eto.Mac/Forms/Controls/WKWebViewHandler.cs
Lines 188 to 199 in 32703b9
Before passing r variable to new NSUrl(r) we need to make sure r is URL encoded.
r
new NSUrl(r)
Or we should use fileURL function which returns NSUrl.
The text was updated successfully, but these errors were encountered:
Mac: Fix crash when selecting file with space in name from WebView
a3b2e6d
Fixes picoe#1874
Successfully merging a pull request may close this issue.
When viewing following HTML code using WKWebView
<input type="file">
And user selects a file which contains space character, the application will crash with
NSInvalidArgumentException
.I think the issue is with
RunOpenPanel
functionEto/src/Eto.Mac/Forms/Controls/WKWebViewHandler.cs
Lines 188 to 199 in 32703b9
Before passing
r
variable tonew NSUrl(r)
we need to make surer
is URL encoded.Or we should use fileURL function which returns NSUrl.
The text was updated successfully, but these errors were encountered: