Real file upload etc.
dereine - September 26, 2008 - 14:36
| Project: | DataBase File Manager |
| Version: | 5.x-4.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Is there a way to support even real file upload in a certain dir.
We have a very huge database which would be hard to initialize at first time.
One possible solution i thought of is to scan the files directory at each cron and look for new files. If there are some i upload them into the database...
Is there even a way, not to upload the filedata into the database, but to use a directory for the files.
I will write some hooks, and integration into workflowng for this module because i want to invoke some events if someone downloads a module
-> you could create payed downloads of files
what a awesome module!!

#1
real file upload? I'm not sure that's what you want. Sounds more like bulk file upload - so that you can import a whole directory at a time rather than single files into dbfm??
But if you do really want to upload files and keep them as files there is a solution! Rob Milne's webFM. A brilliant application (on which this is based). With a bit of css you could easily get the two applications looking very similar.
#2
thanks for the answer, yes i need at least bulk import
do you know wether it is possible with webFM to give access permissions to all the files or dircs
#3
I'm afraid I'm no longer up-to-date on what webFM can do. You'll have to have a grope around and read their latest documentation. The last time I looked they could do role based permissions (dbfm does both role and group based permissions).
A bulk upload would be a handy feature for dbfm but there are currently other things with a greater priority - e.g search, email notifications (when a file changes) etc. etc.
#4
Dear Everybody!
I have a problame like this. Please give an answer, patch or something.
dereine, i tried send a message for you, but you disabled this function. :\
Thanks!
#5
No.
It's too far away from what we're trying to do with DBFM.
If anyone wants to contribute such a change, we'd certainly look at integrating it.
#6
I think a bulk upload should be considered in the not-too-distant future. I was contacted this week by a user who needed to upload 200 images into the eserv filesystem on dbfm. Perhaps ftp'ing files into a particular directory could trigger their automatic upload into a temporary area on the dbfm filesystem? - but then who would own the files? If anyone has any ideas on how it should work please get in touch.
#7
would it be realistic to have an option to upload a single zip file which would then be unpacked into the dbfm to display its (multiple files/directories) contents?
similarly, it would be nice to have the option to download a (zip of a) whole directory/directory tree in one go. Are there any plans for this?
#8
I've been giving bulk upload some thought. There's a module called swfupload that looks perfect for integration with dbfm and should allow single file and multiple file uploads (without needing to zip and unzip!). I think that's more likely to be the way I do it. Have a look at the demo:
http://demo.swfupload.org/v220beta4/index.htm
as for when it will happen - I still have to finish document search, rewrite the directory tree code so that dbfm can handle really large file systems (and run properly in IE!) and do file notifications BEFORE I can start on a bulk upload. Could be a little while yet.
#9
Hello, i have the same problem, i want use the DBFM but when i overview the files so it is possible that i become more then 4GB in the Dataspace. I think it is to big for a database and the mysql Database it not the right way to store big volume of files. is it not possible to allow the user to save the Files into the database or in a directory?
#10
Our company document filesystem here is already 6.3GB - what made you think 4GB might be too big for a database??
For the first few months of dbFM I did allow a save to either database or filesystem but that concept was scrapped - it added to the complexity of the code and I couldn't see any great value to it.
If you'd like a file manager that saves to a file system then I suggest webfm which is EXCELLENT - dbFM is based on it!
If you prefer dbFM's styling you'll find that webFM can be easily be spruced up with a few tweaks to the css.
#11
If we try create a few function for read and write 'files' content. If this is read we can rewrite these: we have an switch somewhere, here can you choose the db file or the real file. (sorry my english)
These writer and reader functions check this switch.
Please somebody who know the codebase of dbfm module answer me: is this complicant? (i dont know, have we got functions like these?)
Thx!
#12
It's possible, in-fact the option used to exist, but we removed it. If you're looking for something that writes to a filesystem you should really look at WebFM.
#13
I'm not sure I quite understand what you want to do.
Are you saying you'd like a switch to decide whether dbfm stores everything as files or everything in the database?
If that's the case the answer is yes, it's possible - dbfm did just that initially - though it would take a while to add the functionality back again.
Why though? Once you've started storing things in a filesystem why would you want to switch to a database and vice versa?