Closed (fixed)
Project:
elFinder file manager
Version:
6.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Oct 2010 at 20:02 UTC
Updated:
15 Jun 2012 at 03:51 UTC
Again. . . WOW!
The Demo looks fantastic and works great.
This might show how clueless I am but does elFinder add uploaded files to the database so that they can be used programatically elsewhere by Drupal?
Or would a user have to add them to the DB (and create file nodes) for use elsewhere?
Comments
Comment #1
ph0enix commentedCurrently module don't make changes to database. Filesystem connector using third party library for file manipulation and I didn't checked yet if there possible to execute additional commands after file upload.
This feature will be useful. I'll mark this issue as feature request and will research how this feature can be implemented.
Comment #2
scroogie commentedSubscribing.
Comment #3
troex commentedWe will try implement minimal callback/event methods http://elrte.org/redmine/issues/435
Comment #4
jeffwidman commentedsubscribe
Comment #5
jduguid commentedsubscribe
Comment #6
trotskyicepick commentedYou could always use WebFM to add files to the database, it adds them to a table called webfm_file.
Comment #7
scroogie commentedThat doesn't help. The module needs to add them to the Drupal core "files" table.
Comment #8
BenVercammen commentedDisclaimer:
So here goes:
In the latest D7 dev version, we spotted the _upload_callback() and _remove_callback() methods in the elFinderDrupal class in the elfinder.module file. These functions were not yet being called however, so we had to override the protected _upload() and _remove() methods of the parent class (elFinder).
Check out the following code snippets (extra lines are accompanied by // PATCH :: comments):
If there's already a clean way to use the callback methods, I'd love to hear of it. As long as it's not yet available, I hope this post helps someone else. The same principle can be used to add a callback for moving or renaming files via elFinder.
Comment #9
ph0enix commentedThanks for solution! I didn't look into this feature on 1.x since elFinder 2.0 have more developer friendly api (and not only this :).
If you are interesting, you can play with development 2.x branch based on upcoming elFinder 2.0. It have full file_managed table support (upload, delete, rename, copy, move, extract, archive).
http://drupal.org/node/1204972#comment-5454564
Comment #10
ph0enix commentedComment #11
ph0enix commentedComment #12
ph0enix commented