Rename file after upload?

220 views
Skip to first unread message

Juan José Prieto

unread,
Apr 16, 2013, 8:36:32 PM4/16/13
to f3-fra...@googlegroups.com
I wana validate my file names when upload, how can i do it
i have to create a temp file and rename it later?

this is my upload code,

    function agregarImagen($f3){
        $f3=$this->framework;
        $db=$this->db;

        $web = new \Web();
        $web->receive();

        $imagen = $f3->get( 'FILES.file.name' );
       
        //var_dump($imagen);       
        //var_dump($web);       

       heree something to rename----------

        //do somethig
    }

thanks.

bcosca

unread,
Apr 16, 2013, 9:13:29 PM4/16/13
to f3-fra...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages