how can i delete the selected image?

  •  02-05-2012, 3:58 PM

    how can i delete the selected image?

    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="">
            Form - Start uploading manually
        <link href="demo.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
        function doStart()
            var uploadobj = document.getElementById('myuploader');
            if (uploadobj.getqueuecount() > 0)
                alert("Please browse files for upload");
        <div class="demo">     
                <h2>Start uploading manually</h2>
                <p>This sample demonstrates how to start uploading manually after file selection vs automatically.</p>
                <P>Allowed file types: <span style="color:red">jpg, gif, txt, png, zip</span></p>

                <!-- do not need enctype="multipart/form-data" -->
                <form id="form1" method="POST">
                        $uploader=new PhpUploader();
                        $uploader->InsertText="Select multiple files (Max 10M)";
                    <br /><br /><br />
                    <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>


        echo("<div style='font-family:Fixedsys;'>");
        echo("Uploaded ");
        echo(" files:");
        foreach($guidlist as $fileguid)
                echo("<div style='font-family:Fixedsys;border-bottom:dashed 1px gray;padding:6px;'>");
                echo("FileName: ");
                echo("<br/>FileSize: ");
                echo($mvcfile->FileSize." b");
                echo("<br/>FilePath: ");
                $path = "C:\wamp\www\multiupload\savefiles" . $mvcfile->FileName;
                //Moves the uploaded file to a new location.
                //Copys the uploaded file to a new location.
                //Deletes this instance.
      i tried to change the path of the $mvcfile->Delete($path); but it doesn't work, can anyone guide me the ways of delete the selected images?
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems