Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3550 → Rev 3551

/trunk/jrest/services/CelWidgetSaisie.php
500,7 → 500,7
// on suppose que les b64 des images sont envoyés dans le même ordre que leurs noms
// TODO: indexer le tableau avec le nom des images
$image['b64'] = isset($obs['image_b64'][$index]) ? $obs['image_b64'][$index] : '';
$this->debug[] = 'Contient B64 : '.(empty($obs['image_b64']) ? 'non' : 'oui');
$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
$imgAAjouter[] = $image;
}
} else {
509,7 → 509,7
$imgAAjouter['id_obs'] = $idObs;
$imgAAjouter['nom'] = $obs['image_nom'];
$imgAAjouter['b64'] = isset($obs['image_b64']) ? $obs['image_b64'] : array();
$this->debug[] = 'Contient B64 : '.(empty($obs['image_b64']) ? 'non' : 'oui');
$this->debug[] = 'Contient B64 : '.(isset($obs['image_b64']) ? 'oui' : 'non');
}
 
return $imgAAjouter;
528,7 → 528,7
$nomFichierImg = $this->traiterNomFichierImage($image['nom']);
$cheminImage = $this->config['cel']['chemin_stockage_temp']."/$nomFichierImg";
// Si l'image est transmise en base 64
if (empty($image['b64']) === false) {
if (isset($image['b64'])) {
$this->transformerBase64enFichier($cheminImage, $image['b64']);
}