Matthew Law
2006-May-18 11:36 UTC
[Rails] file_column - filtering uploaded file type and storing image size?
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.
Seemingly Similar Threads
- Getting column value from lookup table in HABTM relationship
- problem with file_column storing images and other files
- Copy an already uploaded file using file_column
- Separating file_column upload directory by account
- How to delete a uploaded file with file_column plugin?