Jump to content

Erron in uploading file with php


zahidprimex

Recommended Posts

I am trying to upload files with php by this code in localhost

<?phpif ($_FILES["file"]["error"] > 0)  {  echo "Error: " . $_FILES["file"]["error"] . "<br />";  }else  {  move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]);  echo "Stored in: " . "upload/" . $_FILES["file"]["name"];  }  ?>

It works well with small file but when I try to upload large file it fails.Whats problem?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...