You are probably referring to >2mb filesize. The default
setting in php.ini for uploads are 2 MB.

As far as I know there isnt any good way of checking the
filesize client-side. You could however use some sort of
java-applet I would think for the upload system - this would
be able to validate the filesize I guess.

The other, and probably the only sollution, would be to
modify php.ini on the server to handle larger files. If your
on a server with other customers you will probably have a
hard time getting your provider to do this as most people
have no use for larger files. On the other hand he most likely
would love to sell you a dedicated server (so would I, :).

-- 
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------


"Unknown Sender" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi All,
>
> I've written a script that accepts an uploaded image, it sets the
> MAX_FILE_SIZE hidden variable as specified. However, when a file that is
> too large is uploaded the script doesn't get a chance to show its own
> error message, instead the warning outputed:
>
> Warning: Max file size exceeded - file [form_data] not saved in Unknown on
> line 0
>
> How can I prevent this error occuring and handle the condition myself?
>
> Thanks,
> Shaun
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to