This is half a feature request and half a bug fix,

I'm attempting to use filestore to store some fairly large files (~10MB) on my website. My feature request is that the files would be able to be stored in the file system as opposed to the database table if desired. (like the image module).

My _reason_ for that request is that I have spend the better part of this afternoon trying to get filestore working on my webhost. The initial problem was my hosting had the max_allowed_packet too low (~1M), luckily they fixed it for me.

That obstacle was overcome... but _then_, I started getting this weird condition where the "files" page wouldn't load for some reason. I did some troubleshooting and figured out that my webserver was croaking on a piece of code that loaded my revisions information from the node table. I realized that since my datafile was stored in my table, it apparently tried to store it in the revisions field when I made a change to my record. This was causing apache to seg fault when it attempted to unserialize.

This is "work-aroundable", but annoying. The entire time I was wondering why the files weren't just stored in a directory...

Comments

gábor hojtsy’s picture

There are multiple solutions for the file storage problem, one is fs.module, which allows you to choose between file system and database storage. In Drupal 4.4.0, there will be an integrated file storage system in file.inc, which also stores files in the file system. Therefore I suggest you explore the other different possibilities...

gordon’s picture

Assigned: Unassigned » gordon

Take a look at filestore2 in my sandbox, it is still only beta but it works and will store on the filesystem in a secure way.

jjanssen’s picture

sweet! Thanks guys! One thing that's a little hard about drupal is that there doesn't seem to be a good list of modules in development available (go ahead, prove me wrong again) without perusing the CVS.

jjanssen’s picture

Goba, I couldn't find fs.module anywhere.... Is it in CVS someplace?

jjanssen’s picture

Gordon, I noticed an event patch in your sandbox that (though out of date) did something I'm very interested in. Namely, to have multiple "subevents" controlled by a "master" event. Do you still use this functionality in some form?

(sorry about posting this here, I wasn't sure where else to specifically contact Gordon)

gábor hojtsy’s picture

Well, it is right that there is no good list of modules in development. You can check out the contributions CVS module anonymously and search for *.module, so you will find all modules 'in development' (including dead modules). BTW fs.module is in sandbox/marco/fileapi