Filemanager icon indicating copy to clipboard operation
Filemanager copied to clipboard

Drag and Drop for Files and/or Directories

Open brunoBicycle opened this issue 13 years ago • 18 comments

Is anyone working on or interested in working on this functionality? Having drag and drop to allow moving or copying in the directory taxonomy would be a really nice addition. I would definitely be interested in working on this feature if I could find some others with a similar interest.

brunoBicycle avatar Jun 05 '11 22:06 brunoBicycle

This feature is really interesting but should be an option (A new config parameter should be introduced into the js file).

By the way, what could be your contribution on that work?

simogeo avatar Jun 06 '11 12:06 simogeo

My php skills are good and I have made changes to the current filemanager javascript to customize it on my end, although I am not an expert with the overall javascript of the filemanager.

brunoBicycle avatar Jun 06 '11 14:06 brunoBicycle

Well, on the PHP side, it will probably be kind of easy... the use of rename() function (and few conditionnal tests) should be enough to move files.

simogeo avatar Jun 06 '11 14:06 simogeo

Well, I would imaging it essentially brakes down to copying or moving an array of filenames. I think part of my hangup is that I don't know the preferred approach with this project. I don't really mind doing the javascript either but I think it would be best if people discussed the best libraries for the job.

brunoBicycle avatar Jun 06 '11 23:06 brunoBicycle

What I mean is that the JS part is probably not that easy. Regarding your contribution and the approach, you can study the current code, create a fork and work on it. Some changes could be done when merging to fit with the actual trunk. Actually, some enhancements and factorization could be done on the existing code .... but due to the lack of time, it's not done yet.

it would be best if people discussed the best libraries for the job.

And that's what we are actually doing. I guess jquery.ui draggable/droppable would be ok but it has to be well connected to the file tree. Or maybe a drag/drop file tree plugin already exists somewhere (I haven't search). What do you think? Do you have other ideas?

simogeo avatar Jun 07 '11 10:06 simogeo

By the way : http://interface.eyecon.ro/demos/drag_drop_tree.html

simogeo avatar Jun 07 '11 10:06 simogeo

Drag & drop is easily doable with HTML5 (both desktop-browser and browser-browser) but there's a bit to go before that's considered stable among clients. See http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29 (github screws up the URL it seems, well it's Wikipedia anyways you know where to find it!)

I'll get to it in a few months time earliest if no one else does it.

Xertoz avatar Feb 28 '12 19:02 Xertoz

Xertoz: Did you ever get to it? Any chance you could get to it now? Or is this already done in the latest version.

pythonmobile avatar Apr 05 '13 15:04 pythonmobile

(not implemented yet)

simogeo avatar Apr 06 '13 08:04 simogeo

I got around to an implementation of sorts, using the standard jquery ui drag and drop api. If people are interested I'll organise to put the code up but it's very prototype right now.

lordplagus02 avatar May 25 '15 09:05 lordplagus02

Thanks for sharing ! Any online demo link to provide ?

simogeo avatar May 26 '15 07:05 simogeo

Unfortunately not, but if you can show me how to contribute the code you can try it yourself, this is my first contribution to github ever... Also it's only tested in chrome. On 26 May 2015 09:56, Simon Georget [email protected] wrote:

Thanks for sharing ! Any online demo link to provide ?

— Reply to this email directly or view it on GitHub.

lordplagus02 avatar May 26 '15 08:05 lordplagus02

I don't want a pull request now since I need to test it and be sure it fits well with existing features (And I have to say that I have some doubt on jquery-ui).

But I'd be very happy, at least, to test it !

For now, I'll give you the advice of creating your own fork on github. If you want to share it quickly, just zip the archive, host it anywhere on Internet and share the link here.

In case you want to send it to me by email you will find my address [into the code](https://github.com/simogeo/Filemanager/blob/master/connectors/php/filemanager.class.php#L10].

Thanks again.

simogeo avatar May 26 '15 09:05 simogeo

whats the status of this? :)

squareclouds avatar Aug 11 '15 21:08 squareclouds

still waiting for contributors !

simogeo avatar Aug 16 '15 12:08 simogeo

I've been incredibly busy at work but when I get a chance I'll send you the code to your email address. Not guaranteeing it's perfect.

lordplagus02 avatar Aug 16 '15 17:08 lordplagus02

sounds good lordplagus! looking forward to this!

squareclouds avatar Aug 17 '15 12:08 squareclouds

Any updates on this?

ghost avatar Nov 08 '15 03:11 ghost