WebGadget() with <input type="file"> not working

Post bugreports for the Mac OSX version here
infratec
Always Here
Always Here
Posts: 7616
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

WebGadget() with <input type="file"> not working

Post by infratec »

If I use the WebGadget() with the following code (webgadget.html):

Code: Select all

<html lang="en">
 <meta charset="UTF-8">
 <head>
  <title>Page Title</title>
 </head>
 <body>
  <input type="file">
 </body>
</html> 
it works in windows, but not in macOS, the file requester of macOS does not open.

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
If I use the WebViewGadget() it works in macOS:

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
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.