lundi 15 avril 2019

Php move upload file from tmp

I know there is other questions regarding this with answers provided. However, Non of these seem to work for me...

My code;

<?php
if ($_FILES["file"]["error"] > 0)
  {
  echo "Error: " . $_FILES["file"]["error"] . "<br />";
  }
else
  {
  echo "Upload: " . $_FILES["file"]["name"] . "<br />";
  echo "Type: " . $_FILES["file"]["type"] . "<br />";
  echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
  echo "Stored in: " . $_FILES["file"]["tmp_name"];
  }
?> 

Can someone PLEASE show me where to insert the move uploaded_file function? thank you in advance.

Other relevant answered questions on forum.

Aucun commentaire:

Enregistrer un commentaire