Posted by rclemings on April 5, 2012 at 2:06am
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?
Haven't used this but looks promising?
http://drupal.org/project/attachments
I use FileField with
I use FileField with CCK.
http://drupal.org/project/filefield
Filefield looks like just the
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
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 ...
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.