Re: Limiting file uploads on a given submit

Lucas Hedding <[email protected]> Wed, 14 Jan 2015 14:20:22 +0000
Newsgroups gmane.comp.php.drupal.support
Message-ID <CAAPYOe=u-dreLwFmAz7rBDT1WxKZBtAb-BFSeXjzFkC_+CJa3g@mail.gmail.com>
--===============3662580630709818842==
Content-Type: multipart/alternative; boundary=001a11c1e14ca7ce8a050c9d70ee

--001a11c1e14ca7ce8a050c9d70ee
Content-Type: text/plain; charset=UTF-8

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 <[email protected]>
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 <[email protected]>
>
>
> 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/ ]

--001a11c1e14ca7ce8a050c9d70ee
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

This seems like a form element level validator would fix this by verifing t=
hat only a single new file is being posted. Perhaps compare to existing fil=
es added to the field, and make sure only one new file is added at a time.<=
div><br></div><div>Lucas<br><br><div class=3D"gmail_quote">On Wed Jan 14 20=
15 at 8:06:42 AM Nancy Wichmann &lt;<a href=3D"mailto:[email protected]=
t">[email protected]</a>&gt; wrote:<br><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<div><div style=3D"color:#000;background-color:#fff;font-family:HelveticaNe=
ue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">=
<div><span>They need to be able to upload another file on the next update, =
so setting it to one doesn&#39;t work.<br></span></div><div>=C2=A0</div><br=
><div></div><blockquote style=3D"border-left:2px solid rgb(16,16,255);margi=
n-left:5px;margin-top:5px;padding-left:5px">  <div style=3D"font-family:Hel=
veticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-siz=
e:16px"> <div style=3D"font-family:HelveticaNeue,Helvetica Neue,Helvetica,A=
rial,Lucida Grande,sans-serif;font-size:16px"> <div> <hr size=3D"1">  <font=
 face=3D"Arial"> <b><span style=3D"font-weight:bold">From:</span></b> muham=
med naushad &lt;<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a>&gt;<br><b><span style=3D"font-weight:bold=
"></span></b></font></div></div></div></blockquote></div></div><div><div st=
yle=3D"color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica=
 Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><blockquote =
style=3D"border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5p=
x;padding-left:5px"><div style=3D"font-family:HelveticaNeue,Helvetica Neue,=
Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div style=3D"font=
-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-ser=
if;font-size:16px"><div><br><div><div><div dir=3D"ltr">You can
 set maximum number of values users can enter for this field to be one.=C2=
=A0<div><br clear=3D"none"></div><div>Go to admin &gt;&gt; select the field=
 from content type &gt;&gt; update the number of values<br clear=3D"none"><=
div><br clear=3D"none"></div><div>If you want to keep this settings as unli=
mited then you can use form validation function.=C2=A0</div><br></div></div=
></div></div><br></div></div></div></blockquote></div></div>--<br>
[ Drupal support list | <a href=3D"http://lists.drupal.org/" target=3D"_bla=
nk">http://lists.drupal.org/</a> ]</blockquote></div></div>

--001a11c1e14ca7ce8a050c9d70ee--

--===============3662580630709818842==
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/ ]
--===============3662580630709818842==--