Bug #14118 Updated: Upload file more than 1 Mb doesn´t work

From: Date: Mon, 19 Nov 2001 17:39:47 +0000
Subject: Bug #14118 Updated: Upload file more than 1 Mb doesn´t work
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70948@lists.php.net to get a copy of this message
ID: 14118 Updated by: derick Reported By: mlara@gcintl.com Old Status: Feedback Status: Closed Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick Previous Comments: ------------------------------------------------------------------------ [2001-11-19 12:39:27] cnewbill@php.net Maybe I am pointing out the obvious here, but this line would prevent you from doing so. <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1024000"> Cause I believe it OVERRIDES php.ini value. So if for some reason I am not stating the obvious remove this line and try again. -Chris ------------------------------------------------------------------------ [2001-11-19 12:34:19] bate@php.net Which version of Apache runs you? I note same problem with IE 5.x. Try you script with Netscape. I think its a problem with your Browser. ------------------------------------------------------------------------ [2001-11-19 11:55:38] mlara@gcintl.com I have a little script for uploading files, all work fine with files lower than 1 mb but if I try to upload a higher file I get the next browser error "The page cannot be displayed". My script is: <? //check for file upload if ($set=="go") { if (is_uploaded_file($UploadedFile)) { print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); } } ?> <FORM ENCTYPE="multipart/form-data" ACTION="test.php" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1024000"> <INPUT NAME="UploadedFile" TYPE="file"> <INPUT TYPE="hidden" name="set" value="go"> <INPUT TYPE="submit" VALUE="Upload"> </FORM> </BODY> </HTML> My php.ini has a very higher configuration limits. The parameters are: max_execution_time = 3000 memory_limit = 16M post_max_size = 80M ; File Uploads ; ;;;;;;;;;;;;;;;; file_uploads = On upload_tmp_dir = /tmp upload_max_filesize = 80M I read that the solution is upgrade php, I´m hoping that there are other solutions. Thanks Mauricio ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14118&edit=1

« previous php.dev (#70948) next »