Jump to content
xisto Community

Dennis56

Members
  • Content Count

    0
  • Joined

  • Last visited

  1. if(!isset($_POST['upload'])) {echo '<form name="upload" enctype="multipart/form-data" method="POST" action="'.$_SERVER['REQUEST_URI'].'"><input type="file" name="file" size="13" value=""><br /><input type="submit" name="upload" value="Upload"></form>';} else {if(($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") ||($_FILES["file"]["type"] == "image/png") ||($_FILES["file"]["type"] == "image/jpg")){$uploaddir = 'uploads/';$filename = $_FILES['file']['name'];$filesize = $_FILES['file']['size'];$tmpname_file = $_FILES['file']['tmp_name']; $date_file = date(imdy);move_uploaded_file($tmpname_file, "$uploaddir$date_file$filename");//Connection MySQL//Select DB//update MySQL}else{echo"Invalid file type.";} }
  2. How can i allow for people to upload images from my site to another path? When i made the script i get this error
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.