Guest User

Untitled

a guest
Jun 14th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. target_file = $target_dir . time()."_abc.jpg";
  2.  
  3. basename($_FILES["files"]["name"]="abc.jpg";
  4.  
  5. $target_file = $target_dir . time()."_abc.jpg";
  6. if (file_exists($target_file)) {
  7. if (move_uploaded_file($_FILES['files']['tmp_name'], $target_file)) {
  8. echo "File Uploaded";
  9. } else {
  10. echo "File Not Uploaded";
  11. }
  12. }
Add Comment
Please, Sign In to add comment