I'm using CCK with a file field, and given the way it's being used, I need to make sure only one file is uploaded per node. However, the CCK field currently allows uploading another after the first. Is there a way to disable this?
Tony,
There is a checkbox "Allow multiple values" on the field definition screen. Might that box be checked? If so, that is your problem and uncheck it.
best,
Shai
On Thu, May 8, 2008 at 6:06 PM, Tony Yarusso tonyyarusso@gmail.com wrote:
I'm using CCK with a file field, and given the way it's being used, I need to make sure only one file is uploaded per node. However, the CCK field currently allows uploading another after the first. Is there a way to disable this?
-- Tony Yarusso http://tonyyarusso.com/ -- [ Drupal support list | http://lists.drupal.org/ ]
Uncheck the "Multiple values" checkbox in the Data Settings for the field (under Administer -> Content Management ->Content types for your type).
Steve
Tony Yarusso wrote:
I'm using CCK with a file field, and given the way it's being used, I need to make sure only one file is uploaded per node. However, the CCK field currently allows uploading another after the first. Is there a way to disable this?
-- Tony Yarusso http://tonyyarusso.com/
On Thu, May 8, 2008 at 5:12 PM, Steve Edwards killshot91@comcast.net wrote:
Uncheck the "Multiple values" checkbox in the Data Settings for the field (under Administer -> Content Management ->Content types for your type).
Steve
Tony Yarusso wrote:
I'm using CCK with a file field, and given the way it's being used, I need to make sure only one file is uploaded per node. However, the CCK field currently allows uploading another after the first. Is there a way to disable this?
-- Tony Yarusso http://tonyyarusso.com/
-- [ Drupal support list | http://lists.drupal.org/ ]
That worked - thanks guys.