I have a filefield that allows multiple file uploads.

In the CCK filefield config options I enabled "list field" and checked "list files by default".

When I add a file to the node it displays and checks the list checkbox for the first file that is added but leaves it unchecked for each file added after the first. Should the list checkbox be checked for every file upload?

Is there a way to hide the list option so that the files are always listed on the node view?
Screenshots attached.

#5 filefield_default_list.patch756 bytesquicksketch
Picture 2.png25.31 KBeasp
Picture 3.png46.64 KBeasp


quicksketch’s picture

Thanks for the report. I'll see if I can confirm the problem with subsequent fields not having the list option checked by default.

Is there a way to hide the list option so that the files are always listed on the node view?

If you always want the files listed, I'd suggest just turning off the "List field" entirely. The list option is only helpful if you intentionally want to not list specific files.

easp’s picture

Turning off the "List field" entirely worked for me. I just wanted the files to always display in the view.

Thanks for your help with this issue.

jzornig’s picture

I'm also seeing this issue. I'd like to retain the ability for users to selectively uncheck the list box, but I do want it checked by default for the first and subsequent files.

Any chance of a fix?

jzornig’s picture

I found the following "Default Value and AHAH" http://drupal.org/node/668432 which might give more insight.

If I turn off javascript in my browser, the default value for "list" checkbox is populated correctly when adding another item.

quicksketch’s picture

Status: Active » Fixed
756 bytes

This patch corrects the problem and I've committed it to 3.x. Please reopen if you discover any problems. Thanks!

Status: Fixed » Closed (fixed)

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