[support] Limiting file uploads on a given submit

Lucas Hedding lucashedding at gmail.com
Wed Jan 14 14:20:22 UTC 2015


This seems like a form element level validator would fix this by verifing
that only a single new file is being posted. Perhaps compare to existing
files added to the field, and make sure only one new file is added at a
time.

Lucas

On Wed Jan 14 2015 at 8:06:42 AM Nancy Wichmann <nan_wich at bellsouth.net>
wrote:

> They need to be able to upload another file on the next update, so setting
> it to one doesn't work.
>
>
>   ------------------------------
>  *From:* muhammed naushad <naushunaushad24 at gmail.com>
>
>
> You can set maximum number of values users can enter for this field to be
> one.
>
> Go to admin >> select the field from content type >> update the number of
> values
>
> If you want to keep this settings as unlimited then you can use form
> validation function.
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20150114/bf3eb50c/attachment.html 


More information about the support mailing list