FILE handling/saving problem

    $photo1 = $_FILES['photo_1']['name'];
    $path1 = "/wp-content/uploads/applicant_images/" . $photo1;
    $path = "/wp-content/uploads/applicant_images/";
    move_uploaded_file($_FILES['photo_1']['tmp_name'], $path . $_FILES['photo_1']['name']);
    $imagetmp1 = addslashes(file_get_contents($_FILES['photo_1']['tmp_name']));

Trying to save the uploaded image to the server, the db takes $path1 no problem but the image is not moved/inserted into $path, $_FILES['photo_1']['error'] gives a value of 0 which indicates that the file was moved/uploaded but it isnt in the $path directory.

Am I missing something please?

Check the folder permissions to make sure you have permission to upload to that folder.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.