HTML5 File API, Drag&Drop and file arguments.

3 views
Skip to first unread message

Guy Bobenrieth

unread,
Feb 12, 2013, 11:28:17 AM2/12/13
to node-...@googlegroups.com
Hello,

I currently test  node-webkit to handle an HTML5 app Desktop. 

I first did  these tests directly on Chrome, as a packaged app, then moved to node-webkit.

My app works out of the box by simply getting a package.json file instead of manifest.json.

Thanks to node-webkit (;-)


My app is working with two behaviour: 

-- The first is by using D&D the HTML5 way.

-- The second would be by starting nw.exe with arguments (pathes to differents files).
I get this pathes by using gui.App.argv. 
But for the moment I don't know to get  HTML5 Files out of these arguments in order to use the same code as for my Drop event.
My drop event handles an Array of Files as given by evt.dataTransfer.files.

I should be missing something but I don't see a way to build an Array of File from my arguments.

Your advice and comments would be appreciated !

Sincerly,

Guy








Guy Bobenrieth

unread,
Feb 15, 2013, 4:07:30 AM2/15/13
to node-...@googlegroups.com
Hello,

To solve my issue, I've finally decidef to move from the HTML5 File API to  node.js' fs module.

Thanks for your time.

Guy
Reply all
Reply to author
Forward
0 new messages