Skip to content

Instantly share code, notes, and snippets.

@vamsitallapudi
Created August 22, 2019 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vamsitallapudi/e5a5bc59c51400ff1aecb3bb27bf3e7c to your computer and use it in GitHub Desktop.
Save vamsitallapudi/e5a5bc59c51400ff1aecb3bb27bf3e7c to your computer and use it in GitHub Desktop.
<?php
$file_path = "uploads/";
$file_path = $file_path . basename( $_FILES['uploaded_file']['name']);
if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $file_path) ){
echo "success";
} else{
echo "fail";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment