All right.
I know that it exactly does what it is, and can't be really caught directly
since this happens before the script gets control.
After display_errors = off, I can pick it up from error logs.

Thanks all.

-----邮件原件-----
发件人: M. Sokolewicz [mailto:[EMAIL PROTECTED] 
发送时间: 2004年12月17日 14:48
收件人: [EMAIL PROTECTED]
主题: [PHP] Re: upload file warning

Yangshiqi wrote:
> I got a php waring when I upload my file:
> 
>  
> 
> Warning: MAX_FILE_SIZE of 200000 bytes exceeded - file
[imgpath=mz-n10.pdf]
> not saved in Unknown on line 0
> 
that seems like a very descriptive warning to me...
>  
> 
>  
> 
> In the form I write like these:
> 
>  
> 
> <input type='hidden' name='MAX_FILE_SIZE' value=200000>
yes... this is where you did put it...
> <input type='file' name='imgpath'>
> 
>  
> 
> And my configuration is :
> 
>  
> 
> file_uploads = on
> 
> upload_max_filesize = 4M
> 
> upload_tmp_dir = /tmp
> 
>  
> 
> so, what 's wrong? 
what do you *think* is wrong :| I mean... just *read* the warning :S
And can I catch the exceeded file error before it is
> passed back to the client?
a) it's checked for size and discarded immediately
b) the file is never passed 'back' to the client. It just disappears 
into the abyss that is /dev/null
> 
>  
> 
>  
> 
> Best wishes.
> 
>  
> 
> yangshiqi
> 
>  
> 
>  
> 
>  
> 
> 

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

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

Reply via email to