Re: HTML file upload: MAX_FILE_SIZE, and/or chunking
Jay Sprenkle <[email protected]> Sat, 1 Dec 2018 10:53:10 -0600
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <CAG19Bi72jf+5MKoixi1Ywz-yyfMhweNpeHTzntqvZ8OnykZgQA@mail.gmail.com> |
--===============2534112472769631283== Content-Type: multipart/alternative; boundary="000000000000e839f8057bf8c0e4" --000000000000e839f8057bf8c0e4 Content-Type: text/plain; charset="UTF-8" I would bet all the server software has a configuration option for limiting upload size. It can be abused to denial of service attack the web server. That would be in addition to the limits a cgi program might have. Consult the web server software documentation On Sat, Dec 1, 2018 at 9:54 AM U.Mutlu <[email protected]> wrote: > Hi, > > is it possible to set a max file size for file uploads? > > Can such a limit be tested/enforced at client side (ie. in the HTML) > before > the upload starts? > > Can such a limit be tested/enforced at server side (ie. in the cgicc > 'script') > before the download starts? > > The rationale is b/c the server has only limited ressources, esp. memory. > > And a related question: > Is it possible at server side to download the file in multiple chunks, to > conserve memory? > > Thx > > _______________________________________________ > help-cgicc mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-cgicc > -- Most truth exists in the space between words. -- Postings about future science: If I'm going to write science fiction I should know SCIENCE! My Facebook <https://www.facebook.com/JaySprenkle> page. My Twitter <https://twitter.com/jsprenkle1> page --000000000000e839f8057bf8c0e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>I would bet all the server software has a configurati= on option for limiting upload size.</div><div>It can be abused to denial of= service attack the web server. That would be in addition to the limits a c= gi program might have.</div><div>Consult the web server software documentat= ion<br></div><div><br></div></div><br><div class=3D"gmail_quote"><div dir= =3D"ltr">On Sat, Dec 1, 2018 at 9:54 AM U.Mutlu <<a href=3D"mailto:um@mu= tluit.com">[email protected]</a>> wrote:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex">Hi,<br> <br> is it possible to set a max file size for file uploads?<br> <br> Can such a limit be tested/enforced at client side (ie. in the HTML) before= <br> the upload starts?<br> <br> Can such a limit be tested/enforced at server side (ie. in the cgicc 's= cript') <br> before the download starts?<br> <br> The rationale is b/c the server has only limited ressources, esp. memory.<b= r> <br> And a related question:<br> Is it possible at server side to download the file in multiple chunks, to <= br> conserve memory?<br> <br> Thx<br> <br> _______________________________________________<br> help-cgicc mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<= /a><br> <a href=3D"https://lists.gnu.org/mailman/listinfo/help-cgicc" rel=3D"norefe= rrer" target=3D"_blank">https://lists.gnu.org/mailman/listinfo/help-cgicc</= a><br> </blockquote></div><br clear=3D"all"><br>-- <br><div dir=3D"ltr" class=3D"g= mail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><d= iv dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D= "ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><di= v><div dir=3D"ltr"><div><div dir=3D"ltr"><div>=C2=A0 Most truth exists in t= he space between words.<div><font size=3D"2">-- <br></font></div><div><font= size=3D"2"><span><font size=3D"2"><span><font size=3D"2"><span><font size= =3D"2">Postings about future science: </font></span></font></span>If I'= m going to write science fiction I should know SCIENCE! <br></font></span><= /font></div><div><font size=3D"2">My <a href=3D"https://www.facebook.com/Ja= ySprenkle" target=3D"_blank">Facebook</a> page.<br></font></div><div><font = size=3D"2">My <a href=3D"https://twitter.com/jsprenkle1" target=3D"_blank">= Twitter</a> page<br></font></div><div><font size=3D"2"></font><br></div><di= v><span style=3D"color:rgb(0,0,0);font-weight:bold;font-size:1.1em"><font s= ize=3D"2"></font></span><font size=3D"2"></font></div></div></div></div></d= iv></div></div></div></div></div></div></div></div></div></div></div></div>= </div></div></div></div></div> --000000000000e839f8057bf8c0e4-- --===============2534112472769631283== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-cgicc mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-cgicc --===============2534112472769631283==--