WebGadget() with <input type="file"> not working
Posted: Mon Oct 21, 2024 9:20 am
If I use the WebGadget() with the following code (webgadget.html):
it works in windows, but not in macOS, the file requester of macOS does not open.
If I use the WebViewGadget() it works in macOS:
The main problem is that it works in windows but not in macOS.
Also drag'n drop works not with the WebGadget but with the WebviewGadget() in macOS.
Code: Select all
<html lang="en">
<meta charset="UTF-8">
<head>
<title>Page Title</title>
</head>
<body>
<input type="file">
</body>
</html>
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280,"file:///Users/infratec/webgadget/webgadget.html")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebViewGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebViewGadget(0, 10, 10, 580, 280)
SetGadgetText(0,"file:///Users/infratec/webgadget/webgadget.html")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Also drag'n drop works not with the WebGadget but with the WebviewGadget() in macOS.