ID: 42777 Updated by: [EMAIL PROTECTED] Reported By: rufus_nayagam at hotmail dot com -Status: Open +Status: Feedback Bug Type: Performance problem Operating System: windows PHP Version: 4.4.7 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2007-09-27 12:43:07] rufus_nayagam at hotmail dot com Description: ------------ I am using the following code. When our users upload files through this code... The is_uploaded_file returns false randomly but not always. if(isset($_REQUEST['action'])){ echo "submitted"; echo "<pre>"; // print_r($_REQUEST); print_r($_FILES); echo "</pre>"; $tempName = $_FILES["user_image"]["tmp_name"]; if (is_uploaded_file($tempName)){ echo "Yes Uploaded <br>"; }else{ echo "Not Uploaded is_uploaded_file() failed <br>"; } } ?> <form name="form_main" method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>"> <table width='100%'><tr><td valign='top'> <table width='75%' align='center' cellpadding=5 cellspacing=1> <tr class='user2'><td><b>Image : </b></td><td><input type="file" name="user_image" size="40"></td></tr> <tr class='user2'><td> </td><td><INPUT TYPE="submit" name="action" value="submit"></td></tr> </table> </td></tr></table> </form> Please give me a solution or any alternatives for this. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42777&edit=1