Re: Adding date-time as prefix to the uploading files.

  •  11-19-2009, 9:46 PM

    Re: Adding date-time as prefix to the uploading files.

    Hi,
     
    Uploader is a tool to help you upload files.
     
    When the file is uploaded , the uploader will save the file to temp folder at first.
     
    And the name of the file is also a temp name.
     
    You need write code to move the file to your target location , and than maintain it by yourself.
     
    Please check the sample ,
     
    demo2.php and demo2_upload.php
     
    demo2.php use this to specify a handler
     
        $uploader->UploadUrl="demo2_upload.php";
    demo2_upload.php move the file to another place
     
       $targetfilepath= "savefiles/myprefix_" . $mvcfile->FileName;
     
     
    You can modify the demo2_upload.php , and change the prefix as you like.
     
    Regards,
    Terry
View Complete Thread