Re: File upload problem

From: Date: Tue, 07 May 2002 21:02:28 +0000
Subject: Re: File upload problem
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-96484@lists.php.net to get a copy of this message
"Jason Wong" <php-general@gremlins.com.hk> wrote in message news:php.general-96480@news.php.net... > On Tuesday 07 May 2002 23:42, Linn Kubler wrote: > > I put the max file size tag into my code but that didn't help either. What > > looks like is happening is that the php file can't be found. I'm using > > phpscriptcenter's upload.php program and it is all in one script, if you > > know what I mean. > > > > What I'm seeing now is that, depending on the size of the file that I > > select to upload, it doesn't look like the form is being processed > > correctly. I changed the action of the form to point to a simple html file > > and I get the same results, page cannot be displayed. But this only > > happens when I pick a file that's 15MB or larger, pick a file that's > > smaller, in this case a few KB, and it works as expected. Not sure what to > > look for next. > > Older versions of php stores the whole file in memory before writing to disk. > Thus you should check the "memory_limit" setting in php.ini. And also check > that the "post_max_size" is not too low. > So I set my memory_limit and post_max_size = 200M but that didn't have any effect. Or, do I need to stop and restart php somehow for those changes to take effect? Thanks, Linn

« previous php.general (#96484) next »