Dateiupload Fehlerhaft

  • Hey Com,


    Ich bekomme Warnings wenn ich die hochgeladene Datei verschieben möchte?


    <?php if(!isset($_POST['submit_u_pic'])) { ?>
    <table>
    <tr>
    <form enctype="multipart/form-data" action="#" method="post">
    <table>
    <tr>
    <td>
    <ul>
    <li>Bitte beachte folgende Formate: ".jpg" ".gif" ".jpeg" oder ".png"</li>
    <li>Dein Profilbild wird auf die Ma&szlig;e 164 Pixel * 164 Pixel automatisch geschnitten!</li>
    <li>Die Datei darf maximal 4 MB haben!</li>
    <div style="margin-top: 0.5em;"><input id="profilpic" name="profilpic" size="25" placeholder="Profilbild ..." type="file"></div>
    </ul>
    <span style="margin-top: 1em;"><center>
    <button style="padding: 5px; border: 1px solid black; background: white;" name="submit_u_pic" type="submit">Hochladen</button>
    </center></span>
    </td>
    </tr>
    </form>
    </tr>
    </table>
    <?php } else {
    //EDIT: Hab den Punkt zwischen Dateiname und Endung vergessen:
    $path_parts = pathinfo($_FILES['profilpic']['tmp_name']);
    $dateiname_neu = time() . $_SESSION['Username'] . ".png";
    $move = move_uploaded_file($_FILES['profilpic']['tmp_name'], "../images/users/" . $dateiname_neu);
    } ?>


    Warnings:


    Warning: move_uploaded_file(../images/users/1383122275NicoWiss.png) [function.move-uploaded-file]: failed to open stream: No such file or directory in /www/htdocs/w00fedd6/NicoWiss/include/css2.php on line 132


    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpQtNrb8' to '../images/users/1383122275NicoWiss.png' in /www/htdocs/w00fedd6/NicoWiss/include/css2.php on line 132


    NicoWiss