|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42777 the is_uploaded_file fails randomly.
Submitted: 2007-09-27 12:43 UTC Modified: 2007-10-10 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: rufus_nayagam at hotmail dot com Assigned:
Status: No Feedback Package: Performance problem
PHP Version: 4.4.7 OS: windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-09-27 12:43 UTC] rufus_nayagam at hotmail dot com
I am using the following code.
When our users upload files through this code... 
The is_uploaded_file returns false randomly but not always. 

  echo "submitted";
  echo "<pre>";
  // print_r($_REQUEST);
  echo "</pre>";
  $tempName = $_FILES["user_image"]["tmp_name"];
  if (is_uploaded_file($tempName)){
    echo "Yes Uploaded <br>";
    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>&nbsp;</td><td><INPUT TYPE="submit" name="action" value="submit"></td></tr>

Please give me a solution or any alternatives for this.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-10 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 00:01:33 2024 UTC