|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-02 09:33 UTC] tony2001@php.net
[2007-10-10 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
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.