Re: Cant upload files with spaces in the name

  •  04-26-2010, 2:30 PM

    Re: Cant upload files with spaces in the name

    Dear SoloX,
     
    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 then 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/" . $mvcfile->FileName;
     
     
    You can modify the demo2_upload.php , change the  $targetfilepath, and remove space or change it to other character.
     
    Regards,
    Eric
View Complete Thread