Bug #18445 Updated: when file upload, the size is duplicated

From: Date: Tue, 23 Jul 2002 00:34:34 +0000
Subject: Bug #18445 Updated: when file upload, the size is duplicated
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14816@lists.php.net to get a copy of this message
ID: 18445 Updated by: youngga@hotmail.com Reported By: youngga@hotmail.com Status: Bogus Bug Type: Filesystem function related Operating System: linux PHP Version: 4.2.1 New Comment: I changed aparch version from 2.0.39 to 1.3.26 and the problem was disappeared. But I doubt PHP is well operating. Above test url is not avaible from now. Previous Comments: ------------------------------------------------------------------------ [2002-07-21 01:40:20] youngga@hotmail.com When I upload file to server, stored file size in server is duplicated. My test page is www.ftpmail.com/test/a_file.php. And you can see my php information at www.ftpmail.com/test.php . The full source is following. ----------------------------------------------------------- <pre> <html> <head> <title>test_array</title> </head> <body> <table align="center" border="0"> <tr> <td> <p>Array file upload test page. <p>Select file then click submit.</p> <form name="files_up" action="<? echo $PHP_SELF; ?>" method="post" enctype='multipart/form-data'> <input class="input" type="file" name="upfile" size="25"><br> <input type="submit" name="sub1" value="submit"> </form> <?php if(!empty($upfile)) { echo "<br>file name = ".$upfile_name; echo "<br>file size = ".$upfile_size."<br>"; } ?> <p>&nbsp;</p> <p><a href="menu.htm">go to menu</a></p> </td> </tr></table> </body> </html> </pre> ----------------------------------------------------------- please answer the solutions. ------------------------------------------------------------------------ [2002-07-21 01:31:04] youngga@hotmail.com When I upload file to server, stored file size in server is duplicated. My test page is www.ftpmail.com/test/a_file.php. And you can see my php information at www.ftpmail.com/test.php . The full source is following. ----------------------------------------------------------- <html> <head> <title>test_array</title> </head> <body> <table align="center" border="0"> <tr> <td> <p>Array file upload test page. <p>Select file then click submit.</p> <form name="files_up" action="<? echo $PHP_SELF; ?>" method="post" enctype='multipart/form-data'> <input class="input" type="file" name="upfile" size="25"><br> <input type="submit" name="sub1" value="submit"> </form> <?php if(!empty($upfile)) { echo "<br>file name = ".$upfile_name; echo "<br>file size = ".$upfile_size."<br>"; } ?> <p>&nbsp;</p> <p><a href="menu.htm">go to menu</a></p> </td> </tr></table> </body> </html> ----------------------------------------------------------- please answer the solutions. ------------------------------------------------------------------------ [2002-07-20 04:19:59] derick@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2002-07-19 23:30:34] youngga@hotmail.com When I file upload with http form, the uploaded file size is duplicated. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18445&edit=1

« previous php.bugs (#14816) next »