RE: [PHP] Rejecting upload files > size
| From: | John W. Holmes | Date: | Thu, 17 Apr 2003 00:25:33 +0000 |
| Subject: | RE: [PHP] Rejecting upload files > size | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144209@lists.php.net to get a copy of this message | ||
> I have this question. I'm building a mail page to attach files. I'm
using
> a "file" input. The thing is the follow. I have to upload the file to
the
> server to attach it into the message, but is not wanted to waste time,
and
> if the file is bigger than X size of bytes it is automatically
rejected by
> the server or the script to upload it. I'm using Apache as web server,
and
> I don't really know how to do that. Any idea is welcome and in advance
> very thanked.
You can't do this with PHP. PHP only looks at the size after it's
uploaded. You'll need some client side solution.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/