Re: Secure File Upload
| From: | andy | Date: | Wed, 05 Jun 2002 08:41:14 +0000 |
| Subject: | Re: Secure File Upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100669@lists.php.net to get a copy of this message | ||
// original question:
<snip>
I would like to be able to really PREVENT uploads, let's say
> > bigger than 10 MB?!
> >
> Add this to your HTML form:
>
> <input type="hidden" name="MAX_FILE_SIZE" value="10240000">
>
> HTH
</snip>
I tryed this, too. But this does not work at all! I use IE 5.5 and it did
not make any difference. Is there something else we have to take care off?
Andy
"Lowell Allen" <la@lowellallen.com> schrieb im Newsbeitrag
news:B92311C3.8137%la@lowellallen.com...
> > From: Christoph Starkmann <kiko@nfq.de>
> >
> > Hi There!
> >
> > When uploading a file with PHP, AFAIK I can only control what will be
stored
> > on the server. So if someone sends me 100 MB, these will be deleted
> > immediately. But, unfortunately, the traffic is produced nevertheless.
Is
> > there any way to check the file size before uploading the file or any
other
> > way to keep the traffic under a certain limit? Last think I would like
to
> > have is a script that disables all uploads after a certain traffic has
been
> > produced, I would like to be able to really PREVENT uploads, let's say
> > bigger than 10 MB?!
> >
> Add this to your HTML form:
>
> <input type="hidden" name="MAX_FILE_SIZE" value="10240000">
>
> HTH
>
> --
> Lowell Allen
>