Re: Adapt output image names into costum prefix with autonumbering.

  •  04-22-2011, 3:25 AM

    Re: Adapt output image names into costum prefix with autonumbering.

    Thanks for the fast reply.
     
    I fixed it as follow:
     
    in file: include_phpuploader.php
     
     I created an $_SESSION named "tellerPics" who keeps count of the pictures i uploaded.
    I placed the session in the following function
     
    1. function _ValidateFile($filename,$filesize)  
    2.     {  
    3.         $_SESSION['tellerPics'] +=1;  
    4.    
     then in the file: ajaxuploadhandler.php
     
    I included the session into my naming prefix.
     
    1. if$uploader->SaveDirectory )  
    2. {  
    3.     $targetfilepath=  "$wd/picProj" . $_SESSION['projectID'] . "_"$_SESSION['tellerPics'] .".jpg";  

     Hope this will also help some people.
    Notice: When you initialise your $phpuploader->render(); you have to be sure that your session has been reset!
View Complete Thread