PhpUploadFile.Delete Method

php Uploader

PHP File Uploader Class Reference

PhpUploadFile.Delete Method 

Deletes this instance.

  1. <?php   
  2. //Gets the GUID of the file based on uploader name   
  3. $fileguid=@$_POST["myuploader"];   
  4. if($fileguid)   
  5. {   
  6.     //get the uploaded file based on GUID   
  7.     $mvcfile=$uploader->GetUploadedFile($fileguid);   
  8.     if($mvcfile)   
  9.     {   
  10.         //Deletes this instance.   
  11.         $mvcfile->Delete();   
  12.     }   
  13. }   
  14. ?>