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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0ccfc4935cd968d289decc405604a2ca?d=identicon&s=25 Matthew Law (Guest)
on 2006-05-18 13:38
(Received via mailing list)
Sorry, more newby FC questions!

I would like to use one file upload field to upload both PDFs and
images.
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
suggest
this is possible without hacking the file_column source.  Has anyone
done
this, and how?


Many thanks,

Matt.
This topic is locked and can not be replied to.