On change la manière de recupérer le nom du fichier

This commit is contained in:
Michael RICOIS 2012-02-08 10:46:34 +00:00
parent aeba2d05a2
commit 0b0984b253

View File

@ -12,9 +12,8 @@ class FichierController extends Zend_Controller_Action
$configuration = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path');
$directory = realpath($configuration->data).'/bodacc';
$json = $this->getRequest()->getParam('q');
$json = json_decode($json);
$file = $json->fichier;
$q = $this->getRequest()->getParam('q');
$file = base64_decode($q);
$output_file = $directory.'/'.$file;