Guest User

Untitled

a guest
Apr 24th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. is_uploaded_file($_FILES['data_file']['tmp_name']) // true
  3.  
  4. $test = $_FILES['data_file']['tmp_name'];
  5. is_uploaded_file($test) // true
  6.  
  7. // Trying to do a multi-stage form with a confirmation page.
  8. // On the confirmation page, have this.
  9. <input type="text" name="tmp_name" value="<?php echo $_FILES['data_file']['tmp_name']; ?>">
  10.  
  11. // Then when submitted:
  12. is_uploaded_file($_POST['tmp_name']) // FALSE
  13.  
  14. // This always evaluates to FALSE even though the paths are IDENTICAL Why???
  15. ?>
Add Comment
Please, Sign In to add comment