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

From: Date: Mon, 19 Nov 2001 16:55:39 +0000
Subject: Bug #14118: Upload file more than 1 Mb doesn´t work
Groups: php.dev 
Request: Send a blank email to php-dev+get-70939@lists.php.net to get a copy of this message
From: mlara@gcintl.com Operating system: linux redhat 7.1 PHP version: 4.0.4pl1 PHP Bug Type: Unknown/Other Function Bug description: Upload file more than 1 Mb doesn´t work 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 bug report at: http://bugs.php.net/?id=14118&edit=1

« previous php.dev (#70939) next »