Re: [PHP] Oversized file behaviour

2004-12-16 Thread Raditha Dissanayake
[EMAIL PROTECTED] wrote:
Hello people.
   I am working on a file upload script, which has an upload limit of 
2MB (set by directive in php.ini). when I try to upload a file that is 
larger than that it loads the page it is meant to but something 
strange happens to the $_POST data, it all seems to dissappear. can 
someone clarify quite what happens when an upload is larger than the 
legal limit.
it's probably not the upload_max_filesize but the post_max_size. File 
uploads are effected by settings other than the upload_max_filesize. If 
you happen to exceed the maximum allowed size for POST the $_POST may 
disappear.

Cheers,
Tom

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

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


Re: [PHP] Oversized file behaviour

2004-12-16 Thread Richard Lynch
[EMAIL PROTECTED] wrote:
> Hello people.
> I am working on a file upload script, which has an upload limit of
> 2MB (set by directive in php.ini). when I try to upload a file that is
> larger than that it loads the page it is meant to but something strange
> happens to the $_POST data, it all seems to dissappear. can someone
> clarify quite what happens when an upload is larger than the legal limit.

Hm. Never seen that one...  The $_FILES array should have blanks/false
in it, plus an error value in one array element.  Did you at least get
that?

Do you have the right ENCTYPE attribute in your FORM tag?...

Just to be pedantic -- You *have* had it work with a file << 2 MB, right?

-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Oversized file behaviour

2004-12-16 Thread [EMAIL PROTECTED]
Hello people.
   I am working on a file upload script, which has an upload limit of 
2MB (set by directive in php.ini). when I try to upload a file that is 
larger than that it loads the page it is meant to but something strange 
happens to the $_POST data, it all seems to dissappear. can someone 
clarify quite what happens when an upload is larger than the legal limit.

Cheers,
Tom
--
Working on webhosting   Tel:01388 11
MTA handling, PHP   Web:www.digital-data.co.uk
scripting, and wireless Email:[EMAIL PROTECTED]
networking, just for a
change.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php