Hi!
Ich weiß nicht, ob das wirklich noch PHP ist...
Ich habe ein Dateiupload per HTTP_POST gemacht, der auf meinem Windows funktioniert, auf meinem Server jedoch nicht.
Einstellungen in der PHP.ini stimmen auch alle (also HTTP-Upload erlaubt).
Das Formular sieht wie folgt aus:
<form enctype="multipart/form-data" action="test.php" method="post">
Datei: <input name="datei" type="file"><br>
<input type="submit" value="testen">
</form>
Und das PHP-Script so:
<?php
if(move_uploaded_file($_FILES['datei']['tmp_name'], $_FILES['datei']['name']))
{
echo "Upload erfolgreich!";
}
else
{
echo "Upload <u>nicht</u> erfolgreich!<br>";
echo $_FILES['datei']['error'];
}
?>
Ausgegeben wird "Upload nicht erfolgreich" und kein Fehlercode.
Hat vielleicht jemand eine Lösung für dieses Problem?
MfG Dac!