RE: [PHP] MAX_FILE_SIZE not working with file uploads
| From: | Dan Parry | Date: | Sun, 23 Sep 2007 00:34:08 +0000 |
| Subject: | RE: [PHP] MAX_FILE_SIZE not working with file uploads | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-262373@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Jeff Cohan [mailto:jeff@nsiteful.com]
> Sent: 23 September 2007 00:02
> To: php-general@lists.php.net
> Subject: Re: [PHP] MAX_FILE_SIZE not working with file uploads
>
> Chris wrote:
> > [error] => 2
> > And also gives you an error code.
>
> Yes, I know and knew that. That's why the upload ultimately fails
> (which is okay).
>
> My point is that when a file's size exceeds the MAX_FILE_SIZE value,
> I want the browser to (a) detect that it's too large BEFORE
> attempting to upload
I might be wrong but this would be classed as 'exploitable'... Webservers
should not be allowed to read from or write to clients... Of course there is
ActiveX...
Dan