FrozenNode / Laravel-Administrator

An administrative interface package for Laravel
http://administrator.frozennode.com/
MIT License
1.94k stars 504 forks source link

Implementation of Elfinder #113

Open bgultekin opened 11 years ago

bgultekin commented 11 years ago

Implementation of elfinder to editor would be nice.

janhartigan commented 11 years ago

Hmmmmmmmmm interesting. A long time ago, I made a simpler, similar type of thing as a side project (https://github.com/janhartigan/filepicker). I'll take a look at this and see what I can come up with.

bgultekin commented 11 years ago

Your plugin is very cool :) I will think about using it with some projects. But I couldn't see feature of upload. I think feature of upload is very important for usage of editor. It makes usage of administrator very effective.

andrewdworn commented 11 years ago

I still miss file upload very much...

...but waiting for it and elfinder give me an idea of another approach to file uploading, let me share it here!

So thinking out of the box: let's say i have a bunch of files already uploaded in a folder. I do it with elfinder, on a separate admin page, "outside" administrator. There i put a button, saying "add to database", where my php code goes through the folder, and creates a record - for each file containing the 'file_name' - in a table named 'myfiles'.

In administrator, a create "has-one" or even "has-many" relationship between my file field (witch is now just a simple Text Field) and the 'myfiles' table's 'file_name' column, and that is it: i end up with a nice procedure to upload files and relate them to my data.