Forum: Ruby on Rails file_column - filtering uploaded file type and storing image

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Matthew L. (Guest)
on 2006-05-18 15:38
(Received via mailing list)
Sorry, more newby FC questions!

I would like to use one file upload field to upload both PDFs and
The images are in the listing_images table and PDFs are in the
listing_pdfs table - both have a one-to-many relationship with listings.
How do I do this?

For listing_images, I would like to store the width and height of the
image so I can produce valid xhtml image tags.  I can't see anything in
the file_column docs (I am using latest version from SVN trunk) to
this is possible without hacking the file_column source.  Has anyone
this, and how?

Many thanks,

This topic is locked and can not be replied to.