0

I need to change the default Drupal functionality of file field:

  • I want to be able to allow upload of all files types, EXCEPT the extensions listed (reversing the current funcitonality)

  • I also want to be able to add a teaser field and a description field to the file.

Any ideas?

3
  • You might want to think about re-phrasing/re-writing this. I can't make much sense out of it.
    – Chapabu
    Commented Sep 5, 2012 at 10:11
  • it's better now?
    – Codium
    Commented Sep 5, 2012 at 10:13
  • There we go :-)
    – Chapabu
    Commented Sep 5, 2012 at 10:18

1 Answer 1

1

The second part of your question is easy with the File Entity module - it turns file uploads into fieldable entities, so adding your teaser/description field is just like adding a field anywhere else in Drupal (make you sure you read the README file - it's not overly clear at first). The module is also on an unstable release, but Dave Reid is pretty damn awesome so I can't imagine it'll be that way for long :-)

Off the top of my head, I can't think of an answer to the first part though I'm afraid.

EDIT

There's an issue here that has a couple of patches for Core that give you a radio box to either Allow only these file types or Allow everything EXCEPT these file types. I've not tested the patches as I don't really want to patch Core for something that I personally don't need, but definitely give it a read!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.