Drag'n drop something from XUL based application to a folder

Talk about add-ons and extension development.
Post Reply
User avatar
Vano
Posts: 403
Joined: December 26th, 2007, 8:21 pm

Drag'n drop something from XUL based application to a folder

Post by Vano »

Hello.

With low lever API we can access and create files on the system (with current privileges), but is there a way create files by dragging something from XUL -based application into a folder?

In my case I'd like to be able drag selected items from a tree and when they dropped in a folder create a file with information from these items.

Any ideas if it's even possible?

Thank you.

P.S.
We can do the opposite - drag'n drop files INTO the application:
https://developer.mozilla.org/en-US/Add ... rag_&_Drop
lithopsian
Posts: 3664
Joined: September 15th, 2010, 9:03 am

Re: Drag'n drop something from XUL based application to a fo

Post by lithopsian »

Normally you supply some simple drag'n'drop information and then it is up to the receiving application to decide what to do with it. So if you drop something on the desktop, your windows manager decides whether to create a file. Most file managers try their best to create a file out of information that is dropped on them, you just have to supply something it can work with.
User avatar
Vano
Posts: 403
Joined: December 26th, 2007, 8:21 pm

Re: Drag'n drop something from XUL based application to a fo

Post by Vano »

The question is how do I "supply" that information?
Post Reply