Re: Re: Supressing warnings on "max file size exceeded"

From: Date: Wed, 25 Jul 2001 14:32:04 +0000
Subject: Re: Re: Supressing warnings on "max file size exceeded"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59556@lists.php.net to get a copy of this message
Thanks for your input Henrik, The problem isn't allowing for file-size really, I'd like to limit it to say some 500kb, but it's the inability to stop anyone from violating this rule beforehand that triggers the warning. I can't stop anyone from uploading a 600kb file until it's uploaded - and then the error (warning) is there. Sure I can skip the size-limit in the <input>-tag, but however high I set the upload_max_filesize-limit (and I really don't want to adjust that), there's the risk of someone tossing away a larger file. I simply want to be able to suppress the warning and handle whatever error I get internally. > > How do I suppress the following message when posting a file to a .php-script? > > > > Warning: Max file size exceeded - file [uploadedfile] not saved in... > > > > It's a warning on line 0, and even if I put error_reporting(0) on line > > 1 it doesn't help. Since the warning is always present all cookies (or > > other headers) fail too. > >is the file very large?

« previous php.general (#59556) next »