Re: removing spaces from filenames before saving to directory

  •  11-16-2009, 10:20 PM

    Re: removing spaces from filenames before saving to directory

    Jim
     
    Hi, when the file have been uploaded , you can rename the file .
     
    In the examples , you can find the comments where you can handle the logic.
     
    For example , in example form-singlefile.php ,
     
    you can move the file by this way :
     
    if($mvcfile)
    {
       $newfilename=$mvcfile->FileName;
       $newfilename=preg_replace("/\\s/","",$newfilename);
       $mvcfile->MoveTo("/uploads/$newfilename");
    }
     
    Regards,
    Terry
     
View Complete Thread