uploading image by using php does not work – Apache
I am trying to upload image as shown here w3schools But it always shows the error Sorry, there was an error uploading your file. PHP <?php if(!isset($_POST["submit"])){ die('Error'); } $target_dir = "/var/www/img/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); $uploadOk = 1;…