Upload.php 280 B

1234567891011121314
  1. <?php
  2. echo '<pre>';
  3. print_r($_FILES);
  4. echo '</pre>';
  5. $file = $_FILES["file"];
  6. if (!empty($file)){
  7. move_uploaded_file($file['tmp_name'], "./" . $file['name']);
  8. echo 'File save: ' . $file['name'];
  9. }
  10. else
  11. echo "Failed to get File";
  12. ?>