ok ... I have been doing some more reading... the file uploads are limited by
a directive in php.ini, upload_max_filesize.. and it defaults to 2 meg.  If
it is large it will act like nothing was uploaded.

At 03:46 PM 3/6/01 +1030, Tyson Lloyd Thwaites wrote:
>Funny, because I can upload stuff that is  close to 2mb (ie 1.99) but
>not over.
>
>I think it must be something to do with the default file limit, even
>though I have explicitly set itlarger, and also set the max size
>field
>in the form larger.
>
>My main gripe is that is_uploaded_file doesn't recognise it as an
>upload.
>
>Cheers
>
>
> > -----Original Message-----
> > From: Rick St Jean [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 06, 2001 3:43 PM
> > To: Tyson Lloyd Thwaites
> > Subject: Re: [PHP] is_uploaded_file false if file too big
> >
> >
> > In some recent development that we had done at work, we
> > found that IIS has a
> > heap limitation of 1MB.    You would have to hack IIS to
> > allow the heap to
> > grow greater than that.
> >
> > Rick.
> >
> >
> > At 03:26 PM 3/6/01 +1030, you wrote:
> > >Hi,
> > >
> > >I am having a problem with is_uploaded file returning false if the
> > >file
> > >uploaded is over a certain size.
> > >
> > >I have used ini_set("upload_max_filesize", "8M"), as well
> > as setting
> > >MAX_FILE_SIZE like this:
> > ><INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="21000000000000">
> > >(ie real big :)
> > >
> > >Still, if I try to upload a file over about 2mb, is_uploaded_file
> > >returns false and the $userfile var is empty. Shouldn't
> > it report an
> > >uploaded file even if it is too large?
> > >
> > >This is quite annoying as my script uses is_uploaded_file
> > to check if
> > >a
> > >file has been uploaded, and if not it shows an upload
> > form. If I try
> > >to upload a +2Mb file, after a short wait I get the upload form
> > >again.
> > >
> > >Any help in fixing this would be appreciated. Here is my setup:
> > >
> > >PHP-4.0.5-dev CGI
> > >IIS4/NT4 SP4
> > >
> > >
> > >Regards,
> > >
> > >Tyson Lloyd Thwaites
> > >IT&e Limited
> > >e-Commerce Division
> > >Adelaide
> > >(08) 8346 3888
> > >
> > >
> > >--
> > >PHP General Mailing List (http://www.php.net/)
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> >
> > ##########################################################
> > #  Rick St Jean,
> > #  [EMAIL PROTECTED]
> > #  President of Design Shark,
> > #  http://www.designshark.com/
> > #  Quick Contact:  http://www.designshark.com/messaging.ihtml
> > #  Tel: 905-684-2952
> > ##########################################################
> >
> >

##########################################################
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##########################################################


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to