|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-19 23:30 UTC] youngga at hotmail dot com
When I file upload with http form, the uploaded file size is duplicated. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
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> </p> <p><a href="menu.htm">go to menu</a></p> </td> </tr></table> </body> </html> ----------------------------------------------------------- please answer the solutions.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> </p> <p><a href="menu.htm">go to menu</a></p> </td> </tr></table> </body> </html> </pre> ----------------------------------------------------------- please answer the solutions.