Drag & drop to get file info

Hey all,

Looking at a “business” sort of application. I scoured but couldn’t find an answer - is it possible to have a routine whereby I can drag & drop a file into my (completed) app and have Defold parse the drive/path/file information?
I want different handling routines depending if the file is a jpg, png, txt, etc, or even if it is just a folder.

Thanks & cheers

For anyone else, I found part of a solution here:

This could do what I am thinking, allowing me to parse the file details and store them into a database to recall in the future.

Any suggestions as the most useable database to save local files, separate from the app, on a Windows desktop?

Cheers

For the drag and drop part I have an extension: https://github.com/britzl/extension-filedrop

3 Likes

@britzl Thanks. That’s brilliant. I’ll have to look into this.

Cheers