Move accessible files to public folders and adjust paths.
This commit is contained in:
@@ -33,9 +33,9 @@ if (!isset($_POST['Speichern'])) {
|
||||
$last = $result2->fetch_assoc();
|
||||
$id = $last['last_insert_id()'];
|
||||
|
||||
$uploaddir = '../img/umgebung/bilder/';
|
||||
$uploaddir = __DIR__ . '/../../../../public/img/umgebung/bilder/';
|
||||
$uploadfile = $uploaddir . $_FILES['Foto']['name'];
|
||||
move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$test = move_uploaded_file($_FILES['Foto']['tmp_name'], $uploadfile);
|
||||
$src = imagecreatefromjpeg($uploadfile);
|
||||
list($width, $height) = getimagesize($uploadfile);
|
||||
if ($height > $width) {
|
||||
@@ -55,4 +55,3 @@ if (!isset($_POST['Speichern'])) {
|
||||
}
|
||||
echo '<a href="index.php?section=fotos&t=bilder">Zurück zur Übersicht</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user