Re: Secure File Upload
| From: | Lowell Allen | Date: | Wed, 05 Jun 2002 04:54:27 +0000 |
| Subject: | Re: Secure File Upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-100655@lists.php.net to get a copy of this message | ||
> 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