How to limit number of uploaded files?

Events happening in the community are now at Drupal community events on www.drupal.org.
rclemings's picture

Can anyone suggest the best way to limit (to one) the number of attachments to a single node in Drupal 6? The core upload module doesn't seem to have a setting for that, unless I've missed it. After I upload a file, it gives me the "attach another file" dialog. For this content type (using the ad module, if that matter), I don't want users to be able to upload more than one file.

Comments

attachment module?

jhofer's picture

Haven't used this but looks promising?
http://drupal.org/project/attachments

I use FileField with

jerryjr's picture

I use FileField with CCK.

http://drupal.org/project/filefield

Filefield looks like just the

rclemings's picture

Filefield looks like just the ticket. I already have it installed but didn't realize it could do that. thx

Yea, I haven't used the the

daniel-san's picture

Yea, I haven't used the the actual upload module that comes with core in years. I automatically keep it disabled and add a filefield that I can completely control.

resolution ...

rclemings's picture

Just to close the loop, I ended up using the attachments module. The ad module, which was getting the uploaded files, uses the core upload module and I couldn't find an easy way to make it use filefield instead. Attachments works well, lets me set different limits for each content type. The only issue I ran into was finding the admin page, which was supposed to be linked from admin/settings/uploads (according to attachments.install) but wasn't. It's at admin/settings/uploads/extensions.

Fresno

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: