Re: Passing file name to other php

  •  10-12-2011, 7:11 AM

    Re: Passing file name to other php

    Hi sschuaer513,
     
    Please open example page "form-keepingstate.php" , it shows you how to get the actual upload file name.
     
    The section below
     
    if(count($files)>0)
    {
        echo("<table style='border-collapse: collapse' class='Grid' border='0' cellspacing='0' cellpadding='2'>");
        foreach($files as $mvcfile)
        {
            echo("<tr>");
            echo("<td>");echo("<img src='phpuploader/resources/circle.png' border='0' />");echo("</td>");
            echo("<td>");echo($mvcfile->FileName);echo("</td>");
            echo("<td>");echo($mvcfile->FileSize);echo("</td>");
            echo("</tr>");
            
            //Moves the uploaded file to a new location.
            //$mvcfile->MoveTo("/uploads");
            //Copys the uploaded file to a new location.
            //$mvcfile->CopyTo("/uploads");
            //Deletes this instance.
            //$mvcfile->Delete();
        }
        echo("</table>");
    }
     
    Regards,
     
    Ken
View Complete Thread