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

From: Date: Mon, 19 Nov 2001 18:21:19 +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-70954@lists.php.net to get a copy of this message
ID: 14118 Updated by: cnewbill Reported By: mlara@gcintl.com Old Status: Open Status: Feedback Bug Type: Unknown/Other Function Operating System: linux redhat 7.1 PHP Version: 4.0.4pl1 New Comment: With an older 4.2.0-dev I can get up to about 6MB. Local File: /tmp/php4Za1Aa Name: ecdc_v502b_up.exe Size: 5855275 Type: application/octet-stream Like derick said please try latest CVS and report back. You can grab it from http://snaps.php.net/. I'll try it myself too. -Chris Previous Comments: ------------------------------------------------------------------------ [2001-11-19 12:59:50] mlara@gcintl.com My apache version is: Apache/1.3.14 I use internet explorer 5.5 and netscape 4.75 but the problem persist I erased the line <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1024000"> but doesn´t work. If you see my script I print the upload variables, if I upload a file lower 2 Mb, the variables are printed, but if I transfer a higher file the variables aren´t printed and not copy the file in server. Thanks ------------------------------------------------------------------------ [2001-11-19 12:39:47] derick@php.net Should be fixed in CVS. Can you try a snapshot from snaps.php.net? Please reopen if the problem persists. Derick ------------------------------------------------------------------------ [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 (#70954) next »