AutoDMC / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Browse for folder/file dialogs (single/multiple/open/save) #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Webkit already provides such inputs. For example for multiple files with 
extension filtering:

  <input type="file" multiple />
  <input type="file" accept=".doc,.docx,.xml,application/msword">

Browsing for a directory:

  <input type="file" webkitdirectory />

Not sure how it works, whether browsing for a directory needs some special 
permissions to see the full path of a directory.

See also available dialogs in Node-Webkit:

  https://github.com/rogerwang/node-webkit/wiki/File-dialogs

There is even javascript api that lets you acccess contents of these files in 
javascript. Not sure how about accessing original full path, maybe this is also 
possible after setting some permissions in Chrome.

Windows API functions:

  SHBrowseForFolder(): 
  http://msdn.microsoft.com/en-us/library/windows/desktop/bb762115(v=vs.85).aspx

  GetOpenFileName(): 
  http://msdn.microsoft.com/en-us/library/windows/desktop/ms646927(v=vs.85).aspx

  GetSaveFileName(): 
  http://msdn.microsoft.com/en-us/library/windows/desktop/ms646928(v=vs.85).aspx

  Open and save as dialog boxes: 
  http://msdn.microsoft.com/en-us/library/windows/desktop/ms646960(v=vs.85).aspx

Original issue reported on code.google.com by czarek.t...@gmail.com on 16 Feb 2014 at 3:57

GoogleCodeExporter commented 9 years ago
See File API in HTML 5:

  http://www.html5rocks.com/en/tutorials/file/dndfiles/

Original comment by czarek.t...@gmail.com on 16 Feb 2014 at 4:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:37