SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if (!empty($_FILES['file'])){ if ($_FILES['file']['error'] > 0){ echo 'Error: ' . $_FILES['file']['error'] . '<br>';}else{ echo '<br><br>Stored file:'.$_FILES['file']['name'].'<br/>Size:'.($_FILES['file']['size']/1024).' kB<br/>'; move_uploaded_file($_FILES['file']['tmp_name'],$_FILES['file']['name']); } } ?>
  2.  
  3.     <form action="" method="post" enctype="multipart/form-data">
  4.         Select image to upload:
  5.         <input type="file" name="file" id="fileToUpload">
  6.         <input type="submit" value="Upload Image" name="submit">
  7.     </form>
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