Re: Limiting file uploads on a given submit
muhammed naushad <[email protected]> Wed, 14 Jan 2015 09:29:56 +0400
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <CAKVDCntAMx1m70scf9eoPAgCWbAfu++JkAsMi8Xe7XmcDTTOTw@mail.gmail.com> |
--===============2655380649413972255== Content-Type: multipart/alternative; boundary=089e0122aaeedf9474050c96084c --089e0122aaeedf9474050c96084c Content-Type: text/plain; charset=ISO-8859-1 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. Thanks, On Wed, Jan 14, 2015 at 9:01 AM, Nancy Wichmann <[email protected]> wrote: > I have a file field that has unlimited cardinality (and needs to). But I > need to only allow one upload per submission. Does anyone know how to do > this? > > > > -- > [ Drupal support list | http://lists.drupal.org/ ] > -- Thanks Muhammed Naushad Web Developer +971529187882,+919744663973 http://stunningspider.com --089e0122aaeedf9474050c96084c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">You can set maximum number of values users can enter for t= his field to be one.=A0<div><br></div><div>Go to admin >> select the = field from content type >> update the number of values<br><div><br></= div><div>If you want to keep this settings as unlimited then you can use fo= rm validation function.=A0</div><div><br></div><div>Thanks,=A0</div></div><= /div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Jan = 14, 2015 at 9:01 AM, Nancy Wichmann <span dir=3D"ltr"><<a href=3D"mailto= :[email protected]" target=3D"_blank">[email protected]</a>></= span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e= x;border-left:1px #ccc solid;padding-left:1ex"><div><div style=3D"color:#00= 0;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,= Arial,Lucida Grande,sans-serif;font-size:16px"><div><span>I have a file fie= ld that has unlimited cardinality (and needs to). But I need to only allow = one upload per submission. Does anyone know how to do this?<br></span></div= ><div>=A0</div><br></div></div><br>--<br> [ Drupal support list | <a href=3D"http://lists.drupal.org/" target=3D"_bla= nk">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear=3D"a= ll"><div><br></div>-- <br><div class=3D"gmail_signature"><div dir=3D"ltr">T= hanks<br>Muhammed Naushad<br>Web Developer<br>+971529187882,+919744663973<b= r><a href=3D"http://stunningspider.com" target=3D"_blank">http://stunningsp= ider.com</a></div></div> </div> --089e0122aaeedf9474050c96084c-- --===============2655380649413972255== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- [ Drupal support list | http://lists.drupal.org/ ] --===============2655380649413972255==--