Re: File Uploads

From: Date: Tue, 07 Aug 2001 23:52:39 +0000
Subject: Re: File Uploads
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61721@lists.php.net to get a copy of this message
Scott, I am a Windows/ASP guy who just recently started messing around with PHP, so maybe I am completely off path, however I found this post: ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------------------- On my system (Solaris 7/SPARC, Apache 1.3.9), in order to be able to upload files larger than 8 MB, you need to increase the memory_limit in php3.ini to a value larger than 8 MB. For example, if MAX_FILE_SIZE is set to 209715199 in your form and upload_max_filesize is set to 209715200 in php3.ini, the largest file that can be uploaded is 7996 kilobytes or about 8 MB. Increasing the memory_limit (I increased mine to 100 MB) allows me to upload files that are up to 100 MB in size. ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -------------------------------------------- You can find it here: http://www.php.net/manual/cs/features.file-upload.php HTH, Damiano "Scott Kalbach" <skalbach@rastardm.com> wrote in message news:E15TtGs-0002BM-00@mail.rastardm.com... > Hi, I am having a problem with http uploads: > > First I am using Mandrake 8.0 with apache 1.3.19 and php 4.0.4. > > I have an upload script which I need to allow large files to be uploaded. I > have set the <input type="hidden" name="MAX_FILE_SIZE" > value="104857600"> > Which I believe should be 100mb. > > I have also set the same value in the php.ini file for the > memory_limit and upload_max_filesize directives and also set a longer script > execution time out. > > No matter what valuesI give these directives I still can't upload anything > over 8 megs which was the default before I changed it. I have restarted > apache and rebooted. > > Any help would be appreciated. > > Scott

« previous php.general (#61721) next »