php - how to set path for uploaded files using zend framework? -
i trying upload video , convert in php using zend framework , have bit of problem logic. i have directory, locally, needs hold uploaded files: c:/xampp/htdocs/zend/videos/ fist need convert video move in directory. for conversion im using this: exec("ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x240 video.flv", $out); here part of form: $file = new zend_form_element_file('file'); $file->setlabel('file') ->setrequired(true) //->setdestination('/var/www/tmp') use in real life ->setdestination('c:/xampp/htdocs/zend/tmp') ->addvalidator('size', false, array('min' => '10kb', 'max' => '100mb')); when upload file goes directory fine. do need convert file in tmp directory , move other main one, delete original one? isn't there way hold original file in temp directory temporary until gets conv