Re: Max File Size exceeded

From: Date: Mon, 24 Nov 2003 20:21:36 +0000
Subject: Re: Max File Size exceeded
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170818@lists.php.net to get a copy of this message
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" <bogus@news.php.net> wrote in message news:Pine.LNX.4.21.0008201936070.2397-100000@ftoomsh.progsoc.uts.edu.au... > > 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 >

« previous php.general (#170818) next »