php upload images???

Out of context: Reply #3

  • Started
  • Last post
  • 22 Responses
  • georgietexan0

    I get errors...

    <?
    include("/includes/connection.php");
    echo "";
    echo "local temp file called after upload: $uploadfile
    ";
    echo "original remote file called: $uploadfile_name
    ";
    echo "size of the of the file in bytes: $uploadfile_size
    ";
    echo "file type: $uploadfile_type
    ";
    echo "";
    echo "";

    if ( $uploadfile == "none" ) {
    echo "No file was uploaded";
    echo "Back to the form to upload files";
    exit;
    }

    if ($uploadfile_size < 30072 ) {

    if (copy($uploadfile,"www/mydot.com/docs/$uploadfile_name"))
    {
    echo "File Uploaded OK ";
    unlink($uploadfile);
    } else {
    echo "File Upload Failed";
    }

    } else {
    echo "Sorry files need to be less than 3KB for uploading";
    }
    ?>
    Back to the form to upload files

View thread