when adding a cck field of "file" I am presented with 3 options for form element: 1) file upload 2) extensible file and 3) image. If I choose 1) or 2) I get
An illegal choice has been detected. Please contact the site administrator.

what I am really looking for is a generic media upload field where users can upload mp3, pdf, jpg or whatever and some appropriate behavior occurs i.e. image might be resized, then shown as part of the post, mp3 getid3 tags would be interpreted for search and categorization, etc. Can file framework upload files generically or do I have to have a separate field for image, one for audio, one for video, etc.?

Also in cck there are actually 2 "file" fields to choose from. I am assuming the other is the built-in functionality of drupal's file upload module. I couldn't find a way to disable this one -- might there be a conflict? Also, should you call your content something other than "file" since drupal already is using that content type for their built-in functionality?

Thanks,

-John

Comments

miglius’s picture

First, please disable core upload module. Fileframework replaces all it's functionality and having both enabled can lead to unpredictable issues.

The file framework uploads files generically, i.e. it recognizes the file MIME and extracts metadata accordingly - exif for images, getid3 for audio/video, pdfinfo for pdf files, etc. It also converts uploaded file to other MIME types and builds previews, for instance if you would upload a openoffice file, it is converted to msword, zip, pdf files, then derived pdf file is further converted to the image, image thumbnail, flash movie and text is extracted. Metadata is saved for all derived files. But, of course, you have to have all convert utilities properly configured.

When you use a cck file field, a file uploaded with the cck node is saved as a node, all aforementioned conversions are performed and various previews are available based on the MIME type.

whyameye’s picture

sorry. My mistake. It appears the file module above that gives 1) file upload 2) extensible file and 3) image is part of the core file module. Somehow the core file module breaks when file framework cck is enabled. Options 1) and 2) of the core file module work when file framework cck is disabled. Maybe that's not a big deal. Anyway, sorry for the mistaken post. It can be deleted if there is a way --- I wasn't sure how to delete.

miglius’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

filburt’s picture

Hi,

I have problems with the combination of File Framework and Image Resize Filter (which needs the built-in Upload functionality). Same error occurs as mentioned above. I also posted the problem in the Image Resize Filter issues but have gotten no response, yet. See: http://drupal.org/node/562460

Thanks a lot and greetings
Filburt

filburt’s picture

Status: Closed (fixed) » Active
johanneshahn’s picture

Status: Active » Closed (cannot reproduce)

try latest stable