Re: Control customization

  •  02-21-2010, 6:51 PM

    Re: Control customization

    PrinceOfAbyss:
    One very simple and quick question. When I upload some files, and I haven't set from the beginning the $uploader->SaveDirectory property, nor have I used after the upload the $mvcfile->MoveTo method to move them to a desired location, WHERE do the files go?
     
    1. <?php require_once "phpuploader/include_phpuploader.php" ?>   
    2. <html>   
    3. <body>   
    4.         <form id="form1" method="POST">   
    5.             <?php   
    6.                 $uploader=new PhpUploader();   
    7.                 $uploader->Name="myuploader";    
    8.                 uploader->Render();   
    9.             ?>   
    10.         </form>   
    11. <?php   
    12. //Gets the GUID of the file based on uploader name   
    13. $fileguid=@$_POST["myuploader"];   
    14. if($fileguid)   
    15. {   
    16.     //get the uploaded file based on GUID   
    17.     $mvcfile=$uploader->GetUploadedFile($fileguid);   
    18.     if($mvcfile)   
    19.     {   
    20.         //Gets the name of the file.   
    21.         echo($mvcfile->FileName);   
    22.         //Gets the temp file path.   
    23.         echo($mvcfile->FilePath);   
    24.         //Gets the size of the file.   
    25.         echo($mvcfile->FileSize);    
    26.            
    27.         //Copys the uploaded file to a new location.   
    28.         $mvcfile->CopyTo("/uploads");   
    29.         //Moves the uploaded file to a new location.   
    30.         $mvcfile->MoveTo("/uploads");   
    31.         //Deletes this instance.   
    32.         $mvcfile->Delete();   
    33.     }   
    34. }   
    35. ?>  
    36. </body>   
    37. </html>  
     
    More information:
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread