Re: Can't Find the file

  •  08-17-2009, 2:16 PM

    Re: Can't Find the file

    Ok, so can you be more specific on how to get the 'guidlist'?
     
    In the deployment page you give an example, but don't say what is the name of that file! I guess I need to create a file with that code and then I can customize it, right?
     
     3. Retrieving uploaded file.
    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.         //Gets the name of the file.   
    11.         echo($mvcfile->FileName);   
    12.         //Gets the temp file path.   
    13.         echo($mvcfile->FilePath);   
    14.         //Gets the size of the file.   
    15.         echo($mvcfile->FileSize);    
    16.            
    17.         //Copys the uploaded file to a new location.   
    18.         $mvcfile->CopyTo("/uploads");   
    19.         //Moves the uploaded file to a new location.   
    20.         $mvcfile->MoveTo("/uploads");   
    21.         //Deletes this instance.   
    22.         $mvcfile->Delete();   
    23.     }   
    24. }   
    25. ?>  
View Complete Thread