Sorry, there was an error uploading your file.
KOD:
$target_dir = "/home/admin/web/jakastamstrona.pl/public_html/acp/upload/"; $uploadOk = 1; // Check if image file is a actual image or fake image if($check !== false) { $uploadOk = 1; } else { $uploadOk = 0; } } // Check if file already exists //if (file_exists($target_file)) { // echo "Sorry, file already exists."; // $uploadOk = 0; //} // Check file size if ($_FILES["fileToUpload"]["size"] > 500000) { $uploadOk = 0; } // Allow certain file formats // Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { // if everything is ok, try to upload file } else { echo '<div class="alert alert-success">The file ". basename( $_FILES["fileToUpload"]["name"]). " has been uploaded.</div>'; } else { } }
Folder ma prawa chmod 777 i jest stworzony

Proszę o pomoc!