Re: Uploading files and writing them to server?

On the contrary, I homebrewed file upload because I had issues with
file_column. I probably wrote about 15 lines of code, most of them in
the model. I’m willing to share, if anyone wants the code.

Sean C.
Web Services - KCKCC

[email protected] 3/29/2006 12:00 PM >>>

Google for the file_column plugin. It handles many of the minutae like
figuring out where in the filesystem to store the files, handling the
form field gracefully when it comes to updating the database record that
references it, etc., all through a one-line declaration in the model and
a string (varchar) field for the filename. And if they’re image files,
it’s got hooks into RMagick, ImageMagick, etc. for creating and caching
resized and otherwise processed versions of the image.

Not perfect but applicable to most situations and a whole lot easier
than reinventing the wheel.

I’d be interested to see it, but why not post the code to Snippets[1]?

David

[1]BigBold - Informasi Tentang Bisnis dan Marketing

if you wouldn’t mind that would be great